-
Notifications
You must be signed in to change notification settings - Fork 183
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
Convention for cancelled spans #560
Comments
oh no, we'll need to make a decision on canceled vs cancelled 😅 in seriousness, a standard "canceled" (or "cancelled") attribute would be very welcome in opentelemetry-java-instrumentation repo where we currently have (at least):
|
Didn't we want to use the |
The problem with using
|
I'd be in favor of defining something in common. I think we can polish
Some problem with the
The least controversial option I can suggest is to use |
That depends very much on the context. In some cases, for example if I decide that I don't need the output of an operation anymore, I cancel an operation and cancellation is the desired outcome. I don't want this call to count against failed calls in my downstream calls. Also, let's make clear whether we are talking about setting |
It would be great if there was a language- and protocol-agnostic convention for marking a span as representing a cancelled operation.
At present, different languages and protocols treat cancelled operations in different ways, which makes it difficult to do things like filter a trace to show only non-cancelled operations, or visually distinguish between successful, failed and cancelled operations.
For example, a span representing a gRPC call would have the
rpc.grpc.status_code
attribute set to 1 (for the gRPCCANCELLED
status code), while a span representing a Golang operation might be recorded with an event with acontext canceled
message.Instead, it'd be great if there was a convention for an attribute that marked a span as cancelled, such as
cancelled
.The text was updated successfully, but these errors were encountered: