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 c6e9dc7
Browse filesBrowse the repository at this point in the historyBrowse files
docs(observability): describe the OTLP relay on the split boundary
Document the relay as it works on the RFC 0012 architecture: the reserved
unroutable destination, the seccomp-staged path into the supervisor, the
gateway-side environment injection, capability gating, buffering, drain
bounds, and the enriched resource attributes. The Kubernetes runtime page
notes that agent telemetry crosses the Pod boundary over the existing
channel with no NetworkPolicy change, and the gateway config reference
explains what `[openshell.gateway.otlp]` now enables for sandboxes.
The AGENTS.md row for openshell-supervisor-process reflects what the crate
owns after the isolation split.
Refs #2641
Signed-off-by: Roland Huß <rhuss@redhat.com>
Copy file name to clipboardExpand all lines: docs/reference/gateway-config.mdx
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -297,6 +297,12 @@ Only OpenTelemetry traces are exported. Inbound gRPC and HTTP requests produce s
297
297
298
298
The gateway forwards the OTLP configuration, configured gateway name, configured compute driver, and W3C trace context to managed external drivers. Built-in drivers also export their spans to the same collector through dedicated in-process providers. Driver spans retain the gateway trace context, use a distinct service name such as `openshell-driver-docker` or `openshell-driver-podman`, and carry the same `openshell.gateway.name` and `openshell.gateway.compute_driver` resource attributes as gateway spans. Compute-driver client and server spans use the same fully qualified protobuf operation name, such as `openshell.compute.v1.ComputeDriver/CreateSandbox`, in both the span name and `rpc.method`. The service name and span kind distinguish each side. Backend-prefixed child spans identify implementation work. A streaming watch records a terminal status when observed; consumer teardown without a terminal status leaves the span status unset. Operator-run external drivers own their own telemetry configuration.
299
299
300
+
### Agent Telemetry Relay
301
+
302
+
Configuring this table also enables the sandbox telemetry relay. `CreateSandbox` sets `OTEL_EXPORTER_OTLP_ENDPOINT=http://192.0.0.8:4318` and `OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf` in each new sandbox's environment unless the caller already supplied an endpoint. The values persist in the sandbox spec and survive restarts. OTel SDKs inside the sandbox export to that address over HTTP/protobuf or HTTP/JSON.
303
+
304
+
The address is never routed. The sandbox stages the connection for the supervisor, which serves the OTLP receiver itself, adds `openshell.sandbox.id`, `openshell.workspace.id`, `openshell.sandbox.policy`, `openshell.sandbox.user`, `openshell.sandbox.image`, `openshell.sandbox.driver`, and `openshell.telemetry.source=agent`, and forwards the spans to the gateway. The gateway exports them to the same `endpoint` through a dedicated exporter, so agent spans arrive with the supervisor's resource attributes rather than the gateway's. Agent traces need no sandbox egress and no network policy entry. Telemetry never blocks sandbox control traffic: the relay buffers up to 4096 items per sandbox and drops the newest on overflow.
305
+
300
306
For Helm deployments, set `server.otlp.endpoint` to render this table. The
301
307
optional `server.otlp.serviceName` value overrides the gateway service name;
0 commit comments