nemo_gym.sandbox.observability
nemo_gym.sandbox.observability
Extra span attributes for the sandbox API, supplied by whoever runs the sandbox.
The sandbox package knows nothing about rollouts. Gym’s telemetry setup registers a provider
here that returns the current rollout id; the sandbox spans in nemo_gym.sandbox.api add
whatever the provider returns when they open.
Module Contents
Functions
Data
API
Register a callable whose attributes are added to every gym.sandbox.* span.
Called once by the telemetry setup of the embedding application; None removes it. The
provider runs when a span opens, so it may read request-scoped state such as a ContextVar.
An explicit span_attributes argument to AsyncSandbox.start or AsyncSandbox.exec
wins over it key by key.
The provider’s attributes, overridden key by key by explicit.