You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`otel.sdk.span.live`| UpDownCounter |`{span}`| The number of created spans for which the end operation has not been called yet [1]|||
55
-
56
-
**[1]:** For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live` and `otel.sdk.span.ended`.
57
-
For spans with `recording=false`: If implementations decide to record this metric, they MUST also record `otel.sdk.span.ended`.
54
+
|`otel.sdk.span.live`| UpDownCounter |`{span}`| The number of created spans with `recording=true` for which the end operation has not been called yet |||
|`otel.sdk.span.ended`| Counter |`{span}`| The number of created spans for which the end operation was called[1]|||
88
+
|`otel.sdk.span.started`| Counter |`{span}`| The number of created spans [1]|||
92
89
93
-
**[1]:** For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live` and `otel.sdk.span.ended`.
94
-
For spans with `recording=false`: If implementations decide to record this metric, they MUST also record `otel.sdk.span.live`.
90
+
**[1]:** Implementations MUST record this metric for all spans, even for non-recording ones.
|[`otel.span.parent.origin`](/docs/registry/attributes/otel.md)| string | Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)|`none`; `local`; `remote`|`Recommended`||
98
95
|[`otel.span.sampling_result`](/docs/registry/attributes/otel.md)| string | The result value of the sampler for this span |`DROP`; `RECORD_ONLY`; `RECORD_AND_SAMPLE`|`Recommended`||
99
96
100
97
---
101
98
99
+
`otel.span.parent.origin` 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.
100
+
101
+
| Value | Description | Stability |
102
+
|---|---|---|
103
+
|`local`| The span has a parent and the parent's span context [isRemote()](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote) is false ||
104
+
|`none`| The span does not have a parent, it is a root span ||
105
+
|`remote`| The span has a parent and the parent's span context [isRemote()](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote) is true ||
106
+
107
+
---
108
+
102
109
`otel.span.sampling_result` 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.
| <aid="otel-span-parent-origin"href="#otel-span-parent-origin">`otel.span.parent.origin`</a> | string | Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)|`none`; `local`; `remote`||
17
18
| <aid="otel-span-sampling-result"href="#otel-span-sampling-result">`otel.span.sampling_result`</a> | string | The result value of the sampler for this span |`DROP`; `RECORD_ONLY`; `RECORD_AND_SAMPLE`||
18
19
| <aid="otel-status-code"href="#otel-status-code">`otel.status_code`</a> | string | Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. |`OK`; `ERROR`||
19
20
| <aid="otel-status-description"href="#otel-status-description">`otel.status_description`</a> | string | Description of the Status if it has a value, otherwise not set. |`resource not found`||
20
21
21
22
---
22
23
24
+
`otel.span.parent.origin` 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.
25
+
26
+
| Value | Description | Stability |
27
+
|---|---|---|
28
+
|`local`| The span has a parent and the parent's span context [isRemote()](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote) is false ||
29
+
|`none`| The span does not have a parent, it is a root span ||
30
+
|`remote`| The span has a parent and the parent's span context [isRemote()](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote) is true ||
31
+
32
+
---
33
+
23
34
`otel.span.sampling_result` 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.
Copy file name to clipboardExpand all lines: model/otel/registry.yaml
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,23 @@ groups:
39
39
stability: development
40
40
brief: "The result value of the sampler for this span"
41
41
stability: development
42
+
- id: otel.span.parent.origin
43
+
type:
44
+
members:
45
+
- id: none
46
+
value: none
47
+
brief: 'The span does not have a parent, it is a root span'
48
+
stability: development
49
+
- id: local
50
+
value: local
51
+
brief: The span has a parent and the parent's span context [isRemote()](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote) is false
52
+
stability: development
53
+
- id: remote
54
+
value: remote
55
+
brief: The span has a parent and the parent's span context [isRemote()](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote) is true
56
+
stability: development
57
+
brief: "Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)"
0 commit comments