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

feat(spans): Extract trace context status for indexed spans #3407

Merged
merged 6 commits into from
Apr 15, 2024

Conversation

edwardgou-sentry
Copy link
Contributor

@edwardgou-sentry edwardgou-sentry commented Apr 10, 2024

Extract trace context status for indexed spans. To be used in the queues module so we can see the status of tasks.

#skip-changelog

@edwardgou-sentry edwardgou-sentry requested a review from a team April 12, 2024 16:41
@edwardgou-sentry edwardgou-sentry marked this pull request as ready for review April 12, 2024 16:41
@edwardgou-sentry edwardgou-sentry requested a review from a team as a code owner April 12, 2024 16:41
@@ -39,6 +39,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
"release": "1.2.3",
"sdk.name": "sentry.javascript.react-native",
"sdk.version": "unknown",
"trace.status": "unknown",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this unknown come from and is that something we want?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ^. The code LGTM, but according to dev docs, unknown means:

An unknown error raised by APIs that don't return enough error information

And trace.status:

Optional. Whether the trace failed or succeeded.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We coalesce this tag to unknown if theres no trace status supplied. I think we do want this since unknown is a valid value for trace.status and it matches the intended usage to me.

I'll use this for now and we can update this later if needed.

@@ -39,6 +39,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
"release": "1.2.3",
"sdk.name": "sentry.javascript.react-native",
"sdk.version": "unknown",
"trace.status": "unknown",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ^. The code LGTM, but according to dev docs, unknown means:

An unknown error raised by APIs that don't return enough error information

And trace.status:

Optional. Whether the trace failed or succeeded.

@edwardgou-sentry edwardgou-sentry merged commit 1d06dfb into master Apr 15, 2024
21 checks passed
@edwardgou-sentry edwardgou-sentry deleted the egou/feat/extract-trace-status branch April 15, 2024 15:38
chadwhitacre pushed a commit that referenced this pull request Apr 15, 2024
Fixes a broken snapshot test, from
#3407, due to merging to master
without pulling latest snapshot changes.

#skip-changelog
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

Successfully merging this pull request may close these issues.

None yet

4 participants