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.exporter.http.request.duration`| Histogram |`s`| The duration of any http request(s) made from the exporter during export. [1]||
476
+
|`otel.sdk.exporter.request.duration`| Histogram |`s`| The duration of any request(s) made from the exporter during export. [1]||
477
477
478
-
**[1]:** This metric defines successful requests using the full success definitions for [http](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/docs/specification.md#full-success-1).
479
-
Anything else is defined as an unsuccessful request. For successful requests, `error.type` MUST NOT be set. For unsuccessful requests, `error.type` must contain a relevant failure cause.
478
+
**[1]:** This metric defines successful requests using the full success definitions for [http](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/docs/specification.md#full-success-1)
479
+
and [grpc](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/docs/specification.md#full-success). Anything else is defined as an unsuccessful request. For successful requests,
480
+
`error.type` MUST NOT be set. For unsuccessful requests, `error.type` must contain a relevant failure cause.
|[`error.type`](/docs/attributes-registry/error.md)| string | Describes a class of error the operation ended with. [1]|`rejected`; `timeout`; `500`; `java.net.UnknownHostException`|`Conditionally Required` If request has ended with an error ||
484
-
|[`http.response.status_code`](/docs/attributes-registry/http.md)| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`|`Conditionally Required` If and only if one was received/sent.||
485
+
|[`http.response.status_code`](/docs/attributes-registry/http.md)| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`|`Recommended` when applicable||
485
486
|[`otel.component.name`](/docs/attributes-registry/otel.md)| string | A name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance. [2]|`otlp_grpc_span_exporter/0`; `custom-name`|`Recommended`||
486
487
|[`otel.component.type`](/docs/attributes-registry/otel.md)| string | A name identifying the type of the OpenTelemetry component. [3]|`batching_span_processor`; `com.example.MySpanExporter`|`Recommended`||
488
+
|[`rpc.grpc.status_code`](/docs/attributes-registry/rpc.md)| int | The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. |`0`; `1`; `2`|`Recommended` when applicable ||
487
489
|[`server.address`](/docs/attributes-registry/server.md)| string | Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [4]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Recommended` when applicable ||
488
490
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [5]|`80`; `8080`; `443`|`Recommended` when applicable ||
489
491
@@ -548,10 +550,35 @@ E.g. for Java the fully qualified classname SHOULD be used in this case.
548
550
|`otlp_http_span_exporter`| OTLP span exporter over HTTP with protobuf serialization ||
549
551
|`simple_span_processor`| The builtin SDK Simple Span Processor ||
550
552
553
+
---
554
+
555
+
`rpc.grpc.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.
556
+
557
+
| Value | Description | Stability |
558
+
|---|---|---|
559
+
|`0`| OK ||
brief: "The duration of any http request(s) made from the exporter during export."
118
+
brief: "The duration of any request(s) made from the exporter during export."
119
119
note: |
120
-
This metric defines successful requests using the full success definitions for [http](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/docs/specification.md#full-success-1).
121
-
Anything else is defined as an unsuccessful request. For successful requests, `error.type` MUST NOT be set. For unsuccessful requests, `error.type` must contain a relevant failure cause.
120
+
This metric defines successful requests using the full success definitions for [http](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/docs/specification.md#full-success-1)
121
+
and [grpc](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/docs/specification.md#full-success). Anything else is defined as an unsuccessful request. For successful requests,
122
+
`error.type` MUST NOT be set. For unsuccessful requests, `error.type` must contain a relevant failure cause.
0 commit comments