Set Up Deep Agents Trace Export
Enable Deep Agents trace export, then configure an operator-owned collector on the host.
This example uses Linux with Docker and the OpenTelemetry Collector Contrib 0.155.0 image.
Do not publish the unauthenticated receiver as 0.0.0.0:4318 on the host.
For general image and configuration-file mechanics, refer to Install the Collector with Docker.
Review Understand Deep Agents Trace Export before enabling the exporter. The traces can contain sensitive application data, and the local receiver has no authentication.
Enable Trace Export
Set the sandbox name in the host shell. Opt in during initial onboarding:
NemoClaw records the choice with the onboarding session and sandbox. Resume and rebuild operations preserve the choice.
To enable tracing on an existing sandbox, use the transactional rebuild opt-in.
Finish active dcode tasks because Deep Agents Code backup refuses to capture state while a task is running.
The transaction preserves declared agent state, managed MCP providers, and adapter state while it recreates the sandbox.
Changing the setting requires a new sandbox process because it changes the startup environment.
Recover a Skipped Policy
Balanced and Open policy tiers add the observability-otlp-local preset during onboarding.
The Restricted tier suppresses it.
NEMOCLAW_POLICY_MODE=skip skips policy application and reconciliation during non-interactive onboarding.
On a new sandbox, either choice leaves the preset inactive.
On an existing sandbox, skip mode leaves the live policy unchanged.
Inspect the effective policy:
If observability-otlp-local is not active, preview and apply it:
The preset permits only POST /v1/traces to host.openshell.internal:4318 from /opt/venv/bin/python3*.
On the Restricted tier, the next onboarding or rebuild reconciliation removes this manually added preset unless you change tiers.
Create LangSmith Credentials
LangSmith is one possible downstream backend for the backend-neutral receiver.
Create a workspace-scoped service key when your LangSmith plan supports service keys.
Otherwise, create a personal access token for the collector.
Record the target workspace ID because the configuration sends X-Tenant-Id.
For current key types and the workspace ID location, refer to Create an account and API key.
Set the credential only in the host shell that starts the collector. The following endpoint is for the default US LangSmith Cloud deployment:
Choose the endpoint for the LangSmith Cloud deployment:
- Default US:
https://api.smith.langchain.com/otel/v1/traces - EU:
https://eu.api.smith.langchain.com/otel/v1/traces - GCP-hosted APAC:
https://apac.api.smith.langchain.com/otel/v1/traces - AWS-hosted US:
https://aws.api.smith.langchain.com/otel/v1/traces
For a self-hosted deployment, append /api/v1/otel/v1/traces to the LangSmith instance origin.
The self-hosted OTLP base is /api/v1/otel, and the traces exporter adds /v1/traces.
Organization-scoped service keys require the X-Tenant-Id header.
For endpoint guidance and supported field mappings, refer to Trace with OpenTelemetry.
Find the Private Host Bind Address
Resolve host.openshell.internal from the target sandbox.
Verify that the resulting private IPv4 address belongs to a host interface.
The following command fails when the address is empty, public, or not assigned to the host:
Binding to the bridge address prevents ordinary LAN exposure. Other trusted local containers can still have a route to it. Use a host firewall or ACL when the Docker host runs containers outside your trust boundary. NemoClaw does not support shared multi-user hosts as a security boundary.
Configure the Collector
Create an owner-only directory:
Save this configuration as $OTEL_CONFIG_DIR/collector.yaml.
The debug exporter records receipt counts without printing complete span payloads.
Add organization-required filtering or redaction processors before batch.
For one LangSmith example, refer to Trace redaction through an OpenTelemetry Collector.
Restrict the configuration:
The receiver uses 0.0.0.0 only inside the collector container.
The Docker command publishes it on the exact private bridge address.
Validate and Start the Collector
Pull the pinned Contrib image. Validate the effective configuration before starting the long-running collector. The commands run the collector as the current host user so it can read the owner-only configuration.
An invalid configuration exits nonzero and identifies the field that needs correction. Start the collector only after validation succeeds:
Users who control the Docker daemon can inspect the collector process and environment. Use your organization’s container secret injection mechanism when Docker operator access is outside the credential trust boundary.
Verify the health endpoint and published receiver address:
The port output must show $OTLP_BIND_IP, not 0.0.0.0 or [::].
Next Steps
- Verify Deep Agents Trace Export confirms local and remote delivery.
- Manage Deep Agents Trace Export covers stop, disable, reconfiguration, and removal operations.
- Understand Deep Agents Trace Export explains capture and trust boundaries.
- Network Policies documents the local collector preset.