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.count`| UpDownCounter |`{span}`| The number of created spans for which the end operation has not been called yet [1]||
42
42
43
-
**[1]:** For spans with `recording=true` implementations MUST record both `metric.otel.sdk.span.live.count` and `otel.sdk.span.ended.count`.
44
-
For spans with `recording=false`implementations SHOULD record this metric, they MUST either record both `metric.otel.sdk.span.live.count` and `otel.sdk.span.ended.count` or none.
43
+
**[1]:** For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live.count` and `otel.sdk.span.ended.count`.
44
+
For spans with `recording=false`: If implementations decide to record this metric, they MUST also record `otel.sdk.span.ended.count`.
|`otel.sdk.span.ended.count`| Counter |`{span}`| The number of created spans for which the end operation was called [1]||
79
79
80
-
**[1]:** For spans with `recording=true` implementations MUST record both `metric.otel.sdk.span.live.count` and `otel.sdk.span.ended.count`.
81
-
For spans with `recording=false`implementations SHOULD record this metric, they MUST either record both `metric.otel.sdk.span.live.count` and `otel.sdk.span.ended.count` or none.
80
+
**[1]:** For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live.count` and `otel.sdk.span.ended.count`.
81
+
For spans with `recording=false`: If implementations decide to record this metric, they MUST also record `otel.sdk.span.live.count`.
|`otel.sdk.processor.span.processed.count`| Counter |`{span}`| The number of spans for which the processing has finished, either successful or failed [1]||
228
228
229
-
**[1]:** For successful processing, `error.type`must be empty. For failed processing, `error.type` must contain the failure cause.
229
+
**[1]:** For successful processing, `error.type`MUST NOT be set. For failed processing, `error.type` must contain the failure cause.
230
230
For the SDK Simple and Batching Span Processor a span is considered to be processed already when it has been submitted to the exporter, not when the corresponding export call has finished.
|`otel.sdk.exporter.span.inflight.count`| UpDownCounter |`{span}`| The number of spans which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) [1]||
314
314
315
-
**[1]:** For successful exports, `error.type`must be empty. For failed exports, `error.type` must contain the failure cause.
315
+
**[1]:** For successful exports, `error.type`MUST NOT be set. For failed exports, `error.type` must contain the failure cause.
|`otel.sdk.exporter.span.exported.count`| Counter |`{span}`| The number of spans for which the export has finished, either successful or failed [1]||
376
376
377
-
**[1]:** For successful exports, `error.type`must be empty. For failed exports, `error.type` must contain the failure cause.
377
+
**[1]:** For successful exports, `error.type`MUST NOT be set. For failed exports, `error.type` must contain the failure cause.
378
378
For exporters with partial success semantics (e.g. OTLP with `rejected_spans`), rejected spans must count as failed and only non-rejected spans count as success.
379
379
If no rejection reason is available, `rejected` SHOULD be used as value for `error.type`.
Copy file name to clipboardexpand all lines: model/otel/metrics.yaml
+5-5
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ groups:
8
8
unit: "{span}"
9
9
note: |
10
10
For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live.count` and `otel.sdk.span.ended.count`.
11
-
For spans with `recording=false`: If implementations decide to record this metric, they MUST also record `otel.sdk.span.ended.count` or not declare none.
11
+
For spans with `recording=false`: If implementations decide to record this metric, they MUST also record `otel.sdk.span.ended.count`.
12
12
attributes:
13
13
- ref: otel.span.sampling_result
14
14
@@ -21,7 +21,7 @@ groups:
21
21
unit: "{span}"
22
22
note: |
23
23
For spans with `recording=true`: Implementations MUST record both `otel.sdk.span.live.count` and `otel.sdk.span.ended.count`.
24
-
For spans with `recording=false`implementations SHOULD record this metric, they MUST either record both `metric.otel.sdk.span.live.count` and `otel.sdk.span.ended.count` or none.
24
+
For spans with `recording=false`: If implementations decide to record this metric, they MUST also record `otel.sdk.span.live.count`.
25
25
attributes:
26
26
- ref: otel.span.sampling_result
27
27
@@ -57,7 +57,7 @@ groups:
57
57
stability: development
58
58
brief: "The number of spans for which the processing has finished, either successful or failed"
59
59
note: |
60
-
For successful processing, `error.type` SHOULD NOT be set. For failed processing, `error.type` must contain the failure cause.
60
+
For successful processing, `error.type` MUST NOT be set. For failed processing, `error.type` must contain the failure cause.
61
61
For the SDK Simple and Batching Span Processor a span is considered to be processed already when it has been submitted to the exporter, not when the corresponding export call has finished.
62
62
instrument: counter
63
63
unit: "{span}"
@@ -75,7 +75,7 @@ groups:
75
75
stability: development
76
76
brief: "The number of spans which were passed to the exporter, but that have not been exported yet (neither successful, nor failed)"
77
77
note: |
78
-
For successful exports, `error.type` must be empty. For failed exports, `error.type` must contain the failure cause.
78
+
For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` must contain the failure cause.
79
79
instrument: updowncounter
80
80
unit: "{span}"
81
81
attributes:
@@ -94,7 +94,7 @@ groups:
94
94
stability: development
95
95
brief: "The number of spans for which the export has finished, either successful or failed"
96
96
note: |
97
-
For successful exports, `error.type` must be empty. For failed exports, `error.type` must contain the failure cause.
97
+
For successful exports, `error.type` MUST NOT be set. For failed exports, `error.type` must contain the failure cause.
98
98
For exporters with partial success semantics (e.g. OTLP with `rejected_spans`), rejected spans must count as failed and only non-rejected spans count as success.
99
99
If no rejection reason is available, `rejected` SHOULD be used as value for `error.type`.
0 commit comments