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

Add error to span, deprecate status #174

Closed

Conversation

codeboten
Copy link

This changes the mechanism to report an error on a Span from using status.code to using error. As per the discussion in this spec issue: open-telemetry/opentelemetry-specification#706 (comment)

This changes the mechanism to report an error on a Span from using status.code to using error. As per the discussion in this spec issue: open-telemetry/opentelemetry-specification#706 (comment)
@codeboten codeboten requested a review from a team as a code owner July 20, 2020 19:59
yurishkuro
yurishkuro previously approved these changes Jul 20, 2020
@yurishkuro
Copy link
Member

+1, but I think we also need a corresponding Spec change (which technically should precede the proto change).

Copy link
Member

@Oberon00 Oberon00 left a comment

Choose a reason for hiding this comment

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

I think this can be reprented using status in a backwards compatible way. The trace protocol is declared stable, and I think here we can easily avoid a brwaking change by only losing a little elegance. I see now, you just deprecated the old field. But I have two concerns: (1) Should error actually be a tribool success/error/no hint given? This should be discussed in spec. (2) Add explicit guidance that status MUST be set to an error code if error=true (for compatibility with consumers that don't know the new error field).

Definitely wait for spec discussion before doing anything in proto.

@yurishkuro yurishkuro dismissed their stale review July 20, 2020 20:24

wait for spec discussion/changes

@codeboten
Copy link
Author

Completely agree on waiting for the spec change, hoping this PR can help driving that conversation.

@codeboten codeboten changed the title add error to span, deprecate status Add error to span, deprecate status Jul 20, 2020
Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

Blocking this PR until specs changes are merged.

@tigrannajaryan
Copy link
Member

I see this was already mentioned but out of caution I want to reiterate one more time: we declared the Trace portion of the protocol stable. We will need to make sure we don't break this promise. Any implementation of v0.4.0 of the protocol will need to stay compatible (i.e. be able to interoperate) with the implementations of the future versions of the protocol.

@codeboten
Copy link
Author

Closing this PR as Status will stay.

@codeboten codeboten closed this Sep 17, 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.

None yet

5 participants