Skip to content

Replace SpanStatus.CanonicalCode with OTel status code #31

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

Merged
merged 2 commits into from
Dec 15, 2020
Merged

Replace SpanStatus.CanonicalCode with OTel status code #31

merged 2 commits into from
Dec 15, 2020

Conversation

slashmo
Copy link
Collaborator

@slashmo slashmo commented Dec 14, 2020

Closes #29

@slashmo slashmo requested a review from ktoso December 14, 2020 11:10
@slashmo slashmo self-assigned this Dec 14, 2020
public struct SpanStatus {
public let canonicalCode: CanonicalCode
public let code: Code
Copy link
Member

Choose a reason for hiding this comment

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

Should it be possible to set one with undefined status code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should it be possible to set one with undefined status code?
@ktoso

Good question ... I don't think so, as unset basically means you haven't altered the status. The only use-case would be to set it at first, then reset it afterwards. But I don't think that's a real concern.

@slashmo slashmo merged commit bb73481 into apple:main Dec 15, 2020
@slashmo slashmo deleted the remove/span-status-canonical-code branch December 15, 2020 13:07
@slashmo slashmo added this to the 0.1.3 milestone Dec 21, 2020
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.

Remove SpanStatus CanonicalCode
2 participants