Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axiom can't track a Response field #196

Open
FleetAdmiralJakob opened this issue Jun 14, 2024 · 2 comments
Open

Axiom can't track a Response field #196

FleetAdmiralJakob opened this issue Jun 14, 2024 · 2 comments

Comments

@FleetAdmiralJakob
Copy link

I'm currently tracking this stuff:

ctx.log.error(`Zod Errors in the ${errorMessage}`, {
    errorIssues: error.issues, // z.ZodIssue[] WORKS ✅
    resultStatus: result.status, // "fulfilled" WORKS ✅
    resultValue: result.value, // Response NOPE ✂️
    status: result.value.status, // number WORKS ✅
    statusText: result.value.statusText, // string WORKS ✅
});

But I'm only getting the fields errorIssues, resultStatus, status, statusText in axiom

@SollyzDev
Copy link
Collaborator

can you check if the result.value has value? From first look it seems the variable is empty or null and that's why its dropped.

@FleetAdmiralJakob
Copy link
Author

FleetAdmiralJakob commented Jun 14, 2024

No, I get the value.status and value.statusText. That's why value can't be empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants