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 a6632d4
Browse filesBrowse the repository at this point in the historyBrowse files
feat(gateway): point sandbox agents at the OTLP relay
When the gateway has a relay exporter, `CreateSandbox` sets
`OTEL_EXPORTER_OTLP_ENDPOINT` to the reserved relay address and
`OTEL_EXPORTER_OTLP_PROTOCOL` to `http/protobuf` in the sandbox spec's
environment. A caller-supplied endpoint is left untouched together with
its protocol, so an agent pointed at its own collector through
policy-approved egress keeps working. The injection runs after the
template merge and before the final size recheck, so it is covered by the
existing environment cap and reaches every driver through the declared
environment path.
The values persist in the stored spec: restarts launch from the stored
record and inherit them, and `sandbox get` shows where an agent's traces
go. This replaces the supervisor-side injection the relay used when it
shared the agent's process tree.
Tests cover the injection rule and both create outcomes with and without
an exporter on the gateway.
Refs NVIDIA#2641
Signed-off-by: Roland Huß <[email protected]>
// A lazy channel performs no I/O, so the decode failure surfaces
112
123
// before any RPC is attempted and no collector is needed.
113
-
let channel = Channel::from_static("http://127.0.0.1:1").connect_lazy();
114
-
let exporter = OtelRelayExporter{
115
-
client:TraceServiceClient::new(channel),
116
-
};
124
+
let exporter = OtelRelayExporter::lazy_for_test();
0 commit comments