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

BREAKING: Change span statuses for gRPC server spans #3333

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ release.
([#3271](https://github.com/open-telemetry/opentelemetry-specification/pull/3271))
- BREAKING: remove `messaging.destination.kind` and `messaging.source.kind`.
([#3214](https://github.com/open-telemetry/opentelemetry-specification/pull/3214))
- BREAKING: Change span statuses for gRPC server spans.
([#3333](https://github.com/open-telemetry/opentelemetry-specification/pull/3333))

### Compatibility

Expand Down
13 changes: 12 additions & 1 deletion specification/trace/semantic_conventions/rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,18 @@ For remote procedure calls via [gRPC][], additional conventions are described in

### gRPC Status

The [Span Status](../api.md#set-status) MUST be left unset for an `OK` gRPC status code, and set to `Error` for all others.
For `SpanKind.CLIENT` spans, the [Span Status](../api.md#set-status)
MUST be left unset for an `OK` gRPC status code, and set to `Error` for all others.

For `SpanKind.SERVER` spans, the [Span Status](../api.md#set-status) MUST be set
to `Error` for the [gRPC status codes](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md)
listed below.
pellared marked this conversation as resolved.
Show resolved Hide resolved

- `UNKNOWN`
- `UNIMPLEMENTED`
pellared marked this conversation as resolved.
Show resolved Hide resolved
- `INTERNAL`
- `UNAVAILABLE`
- `DATA_LOSS`
pellared marked this conversation as resolved.
Show resolved Hide resolved
pellared marked this conversation as resolved.
Show resolved Hide resolved

### gRPC Request and Response Metadata

Expand Down