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
@@ -20,45 +20,83 @@ use gax::options::RequestOptions;
20
20
// OpenTelemetry Semantic Convention Keys
21
21
// See https://opentelemetry.io/docs/specs/semconv/http/http-spans/
22
22
23
-
/// Span Kind for OpenTelemetry interop. Always CLIENT for a span representing an outbound HTTP request.
23
+
/// Span Kind for OpenTelemetry interop.
24
+
///
25
+
/// Always "Client" for a span representing an outbound HTTP request.
24
26
constKEY_OTEL_KIND:&str = "otel.kind";
25
-
/// Span Name for OpenTelemetry interop. Recommended to be "{http.request.method} {url.template}" if url.template is available, otherwise "{http.request.method}".
27
+
/// Span Name for OpenTelemetry interop.
28
+
///
29
+
/// If `url.template` is available use "{http.request.method} {url.template}", otherwise use "{http.request.method}".
26
30
constKEY_OTEL_NAME:&str = "otel.name";
27
-
/// Span Status for OpenTelemetry interop. Set to Error in the event of an unrecoverable error, for example network error, 5xx status codes. Unset otherwise (including 4xx codes for CLIENT spans).
31
+
/// Span Status for OpenTelemetry interop.
32
+
///
33
+
/// Use "Error" for unrecoverable errors like network issues or 5xx status codes.
34
+
/// Otherwise, leave "Unset" (including for 4xx codes on CLIENT spans).
28
35
constKEY_OTEL_STATUS:&str = "otel.status";
29
36
30
-
/// Which RPC system is being used. Set to "http" for REST calls.
37
+
/// The RPC system used.
38
+
///
39
+
/// Always "http" for REST calls.
31
40
constKEY_RPC_SYSTEM:&str = "rpc.system";
32
-
/// The HTTP request method, for example GET; POST; HEAD.
/// The actual destination host name or IP address. May differ from the URL's host if overridden, for example myservice.googleapis.com; myservice-staging.sandbox.googleapis.com; 10.0.0.1.
/// Span Kind for OpenTelemetry interop. Always CLIENT for a span representing an outbound HTTP request.
129
+
/// The span kind for OpenTelemetry interop.
130
+
///
131
+
/// Always "Client" for a span representing an outbound HTTP request.
92
132
otel_kind:String,
93
-
/// Span Name for OpenTelemetry interop. Recommended to be "{http.request.method} {url.template}" if url.template is available, otherwise "{http.request.method}".
133
+
/// The span name for OpenTelemetry interop.
134
+
///
135
+
/// If `url.template` is available use "{http.request.method} {url.template}", otherwise use "{http.request.method}".
94
136
otel_name:String,
95
-
/// Span Status for OpenTelemetry interop. Set to Error in the event of an unrecoverable error, for example network error, 5xx status codes. Unset otherwise (including 4xx codes for CLIENT spans).
137
+
/// The span status for OpenTelemetry interop.
138
+
///
139
+
/// Use "Error" for unrecoverable errors like network issues or 5xx status codes.
140
+
/// Otherwise, leave "Unset" (including for 4xx codes on CLIENT spans).
96
141
otel_status:OtelStatus,
97
142
98
143
// OpenTelemetry Semantic Conventions
99
-
/// Which RPC system is being used. Set to "http" for REST calls.
144
+
/// The RPC system used.
145
+
///
146
+
/// Always "http" for REST calls.
100
147
rpc_system:String,
101
-
/// The HTTP request method, for example GET; POST; HEAD.
148
+
/// The HTTP request method.
149
+
///
150
+
/// Examples: GET, POST, HEAD.
102
151
http_request_method:String,
103
-
/// The actual destination host name or IP address. May differ from the URL's host if overridden, for example myservice.googleapis.com; myservice-staging.sandbox.googleapis.com; 10.0.0.1.
0 commit comments