-
Notifications
You must be signed in to change notification settings - Fork 896
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 metric attribute conventions corresponding to span status? #3243
Comments
Discussed in Semantic Convention WG and it only makes sense for some metrics and should probably be deferred to individual semantic conventions where they may or may not already have a dimension that encompasses "status", e.g. |
@lmolkova , @trask |
I'd like to revisit this and add more context on why no general-purpose attribute is problematic: Option 1: Domain-specific error codeDatabases and messaging systems do not have cross-domain error codes. They would need to be standardized within one semconv and then we'd introduce
Pros:
Cons:
Option 2: General-purpose error codeWe'll introduce one common attribute Pros and cons are the same as in Option 1, but we do just one status enum, minimizing inconsistencies and cognitive load. Option 3: No common error codes at allEach extension defines a custom attribute, so we'll have
Pros:
Cons:
Proposal: Option2+3
Example:
Pros:
|
Adding more context on how this affects HTTP semconv stability: .NET HttpClient is being instrumented with metrics. The native instrumentation can report failure reason when no response was received ( I expect there are other instrumentations like this, which can provide the reason (DNS issue, connection reset or refused, TLS issue, timeout or cancellation, etc). This information seems to be quite useful and each instrumentation should consider adding this information when it has it. .NET team is considering using We do not have an attribute to report such a thing in HTTP metrics. Assuming we don't introduce one now, adding it later would be a breaking change. |
Based on today's SIG discussion, I separated HTTP-specific issue to open-telemetry/semantic-conventions#204 and removing this one from HTTP blockers. |
Option 4: no unification, one attributeOne attribute that has 2 values defined for success and unknown failure, but allows instrumentations to put any values (with low practical cardinality):
Pros:
|
The |
I believe it was fixed in open-telemetry/semantic-conventions#205 |
From @arminru's #2419 (comment):
The text was updated successfully, but these errors were encountered: