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
{{ message }}
Repository navigation
Commit 325922a
Browse filesBrowse the repository at this point in the historyBrowse files
let received = Arc::new(Mutex::new(ReceivedTraces::default()));
137
154
let exported = Arc::new(tokio::sync::Notify::new());
138
155
let listener = tokio::net::TcpListener::bind("127.0.0.1:0")
139
156
.await
140
157
.expect("OTLP test collector should bind a loopback listener");
141
-
let endpoint = format!("http://{}", listener.local_addr().unwrap());
The transport is **OTLP over gRPC only**. HTTP/protobuf and HTTP/JSON are not supported, and `OTEL_EXPORTER_OTLP_PROTOCOL` has no effect. Point `endpoint` at a collector's gRPC receiver, conventionally port `4317`, not the HTTP receiver on `4318`. A URI alone cannot distinguish the two, so an HTTP endpoint is accepted at startup and then fails on export.
383
383
384
+
Use an `https://` endpoint for TLS. The gateway verifies the collector certificate against the system trust roots.
385
+
384
386
The OpenTelemetry SDK logs export failures after startup. Spans in a failed batch are dropped rather than retried.
385
387
386
388
`service_name` sets the gateway's `service.name` resource attribute and defaults to `openshell-gateway`. The gateway also reports `service.version`, `openshell.gateway.name` from the gateway's configured `name`, and `openshell.gateway.compute_driver`.
@@ -426,7 +428,8 @@ This table decides whether and where to export. How the SDK exports is controlle
0 commit comments