NVIDIA NeMo Agent Toolkit
The NVIDIA NeMo Agent Toolkit (the nvidia-nat package on PyPI) runs agent workflows. Its tracing exporters send OpenTelemetry over OTLP/HTTP; this page points one at cetra. It is setup only: the runs behind this page sent workflow spans only, with no model spans and no token counts.
Install
Section titled “Install”pip install "nvidia-nat[langchain,phoenix]"The phoenix extra installs the Phoenix tracing exporter used below. The opentelemetry extra installs the otelcollector exporter, the plain OTLP alternative described after the config.
Set up
Section titled “Set up”In the toolkit’s workflow config, point the tracing exporter at cetra:
general: telemetry: tracing: phoenix: endpoint: http://<HOST>:8080/v1/traces api_key: <SK_CETRA_KEY>llms: chat_llm: _type: openaiworkflow: _type: chat_completionReplace <HOST> with your cetra server and <SK_CETRA_KEY> with your sk-cetra-… API key. The exporter uses the endpoint as given, with /v1/traces in it, and sends the key as an Authorization: Bearer header. The spans carry openinference.span.kind, and the project name as the openinference.project.name resource attribute. Run the workflow with nat run --config_file config.yml --input "…".
For a tool-using agent, set workflow._type to react_agent with llm_name, tool_names and use_native_tool_calling, and list the tools under functions (for example _type: current_datetime).
The otelcollector exporter is the alternative: under general.telemetry.tracing.otel, set _type: otelcollector, an endpoint that includes /v1/traces, and a project name.
What you get
Section titled “What you get”In the runs behind this page, with nvidia-nat 1.9.0:
- Two
<workflow>spans per run, one forWORKFLOW_STARTand one forFUNCTION_START, with the same input and output; cetra reads both aschainspans. - With a
react_agentworkflow, one span per tool call, also read as achainspan. - The function name of each span sits in its
nat.function.nameattribute; the span names themselves are all<workflow>.
Limits
Section titled “Limits”- No model spans and no token counts: the model calls happened in both runs, but no LLM span was exported, so cetra shows no model call and computes no cost.
- The two workflow spans of a run duplicate each other: same input, same output.
- The tool span is read as
chain, nottool, because the toolkit setsopeninference.span.kind=CHAINon it. - This page was written against nvidia-nat 1.9.0.
- Send OpenTelemetry: the endpoint and the headers cetra expects.
- Traces: read the trace as a tree and a timeline.