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

Change Status to be consistent with Link and Event #1067

Merged
merged 7 commits into from
Oct 7, 2020

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Oct 6, 2020

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

Fixes #1037
Fixes #1040

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu requested a review from a team as a code owner October 6, 2020 17:50
@bogdandrutu bogdandrutu requested a review from a team October 6, 2020 17:50
@bogdandrutu bogdandrutu requested a review from a team as a code owner October 6, 2020 17:50
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Sets the [`Status`](#status) of the `Span`. If used, this will override the
default `Span` status, which is `OK`.
Sets the `Status` of the `Span`. If used, this will override the default `Span`
status, which is `Unset`.
Copy link
Member Author

Choose a reason for hiding this comment

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

This is fixing a bug in the specs (I guess)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
specification/trace/api.md Outdated Show resolved Hide resolved
Application developers and Operators may set the status code to `Ok`.

Analysis tools SHOULD respond to an `Ok` status by suppressing any errors they
would otherwise generate. For example, to suppress noisy errors such as 404s.
Copy link
Member

Choose a reason for hiding this comment

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

Not following - why would analysis tools generate errors?

Copy link
Member Author

@bogdandrutu bogdandrutu Oct 6, 2020

Choose a reason for hiding this comment

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

Good question, I was not changing this, will file the issue #1068 to track this.

specification/trace/api.md Outdated Show resolved Hide resolved
specification/trace/api.md Outdated Show resolved Hide resolved
specification/trace/api.md Outdated Show resolved Hide resolved
to ignore previous calls.
`Status` is semantically defined by the following properties:

- `StatusCanonicalCode` represents the canonical set of `Status` codes.
Copy link
Member

Choose a reason for hiding this comment

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

Why are we using such a long name as StatusCanonicalCode? Are there non-canonical status codes?

Copy link
Member Author

@bogdandrutu bogdandrutu Oct 6, 2020

Choose a reason for hiding this comment

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

Good question, I was not changing this, will file the issue #1069 to track this.

bogdandrutu and others added 2 commits October 6, 2020 11:18
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu added area:api Cross language API specification issue release:required-for-ga Must be resolved before GA release, or nice to have before GA spec:trace Related to the specification/trace directory labels Oct 6, 2020
Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

LGTM, from what I see it is primarily editorial changes and content reshulfling.

@carlosalberto carlosalberto self-requested a review October 7, 2020 01:08
Comment on lines +536 to +537
Only the value of the last call will be recorded, and implementations are free
to ignore previous calls.
Copy link
Member

Choose a reason for hiding this comment

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

This is only taken over but could be refined to be worded consistently (MUST/SHOULD/MAY) either here or in a follow-up.

specification/trace/api.md Outdated Show resolved Hide resolved
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:api Cross language API specification issue release:required-for-ga Must be resolved before GA release, or nice to have before GA spec:trace Related to the specification/trace directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incomplete sentence in OK status code description Remove getters for span status fields from the API
7 participants