[chore] Move otel.* attributes to registry (#891)
This commit is contained in:
parent
51813f68ca
commit
768a23c362
|
|
@ -5,12 +5,29 @@
|
|||
|
||||
<!-- toc -->
|
||||
|
||||
- [OpenTelemetry Attributes](#opentelemetry-attributes)
|
||||
- [General Attributes](#general-attributes)
|
||||
- [Scope Attributes](#scope-attributes)
|
||||
- [Deprecated OpenTelemetry Attributes](#deprecated-opentelemetry-attributes)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
## OpenTelemetry Attributes
|
||||
## General Attributes
|
||||
|
||||
<!-- semconv registry.otel(omit_requirement_level) -->
|
||||
| Attribute | Type | Description | Examples | Stability |
|
||||
|---|---|---|---|---|
|
||||
| `otel.status_code` | string | Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. | `OK` |  |
|
||||
| `otel.status_description` | string | Description of the Status if it has a value, otherwise not set. | `resource not found` |  |
|
||||
|
||||
`otel.status_code` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|
||||
|
||||
| Value | Description | Stability |
|
||||
|---|---|---|
|
||||
| `OK` | The operation has been validated by an Application developer or Operator to have completed successfully. |  |
|
||||
| `ERROR` | The operation contains an error. |  |
|
||||
<!-- endsemconv -->
|
||||
|
||||
## Scope Attributes
|
||||
|
||||
<!-- semconv registry.otel.scope(omit_requirement_level) -->
|
||||
| Attribute | Type | Description | Examples | Stability |
|
||||
|
|
|
|||
|
|
@ -1,4 +1,28 @@
|
|||
groups:
|
||||
- id: registry.otel
|
||||
prefix: otel
|
||||
type: attribute_group
|
||||
brief: Attributes reserved for OpenTelemetry
|
||||
attributes:
|
||||
- id: status_code
|
||||
type:
|
||||
allow_custom_values: true
|
||||
members:
|
||||
- id: ok
|
||||
value: OK
|
||||
brief: 'The operation has been validated by an Application developer or Operator to have completed successfully.'
|
||||
stability: stable
|
||||
- id: error
|
||||
value: ERROR
|
||||
brief: 'The operation contains an error.'
|
||||
stability: stable
|
||||
brief: Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET.
|
||||
stability: stable
|
||||
- id: status_description
|
||||
type: string
|
||||
brief: "Description of the Status if it has a value, otherwise not set."
|
||||
examples: ['resource not found']
|
||||
stability: stable
|
||||
- id: registry.otel.scope
|
||||
prefix: otel.scope
|
||||
type: resource
|
||||
|
|
|
|||
|
|
@ -1,25 +1,9 @@
|
|||
groups:
|
||||
- id: otel_span
|
||||
prefix: otel
|
||||
type: span
|
||||
brief: Span attributes used by non-OTLP exporters to represent OpenTelemetry Span's concepts.
|
||||
attributes:
|
||||
- id: status_code
|
||||
type:
|
||||
allow_custom_values: false
|
||||
members:
|
||||
- id: ok
|
||||
value: OK
|
||||
brief: 'The operation has been validated by an Application developer or Operator to have completed successfully.'
|
||||
stability: experimental
|
||||
- id: error
|
||||
value: ERROR
|
||||
brief: 'The operation contains an error.'
|
||||
stability: experimental
|
||||
brief: Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET.
|
||||
stability: stable
|
||||
- id: status_description
|
||||
type: string
|
||||
brief: "Description of the Status if it has a value, otherwise not set."
|
||||
examples: ['resource not found']
|
||||
stability: stable
|
||||
- ref: otel.status_code
|
||||
requirement_level: recommended
|
||||
- ref: otel.status_description
|
||||
requirement_level: recommended
|
||||
|
|
|
|||
Loading…
Reference in New Issue