-
I'm trying to instrument Triton to send OpenTelemetry traces to an OpenTelemetry-enabled DataDog agent. I run Triton as a Docker container from /opt/tritonserver/bin/tritonserver \
--model-repository=${MODEL_REPO_S3_PATH} \
--trace-config mode=opentelemetry \
--trace-config rate=1 \
--trace-config level=TIMESTAMPS \
--trace-config opentelemetry,url=http://172.17.0.1:4318 Triton answers inference requests correctly with the above setup. In order to confirm that Triton is sending traces I temporarily set the option # install OTel collector:
wget https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.126.0/otelcol_0.126.0_linux_amd64.deb
dpkg -i otelcol_0.126.0_linux_amd64.deb
# declare minimal OTel collector config:
cat > collector-dump.yaml <<-EOF
receivers:
otlp:
protocols:
grpc: # default localhost:4317
http: # default localhost:4318
exporters:
debug:
service:
pipelines:
traces:
receivers: [otlp]
exporters: [debug]
EOF
# start OTel collector:
otelcol --config collector-dump.yaml With both Triton and this minimal OTel collector running inside the same container, I then sent an inference request from a Python Triton client. The request was served correctly but did not produce any output in the Why do I not see any output from I looked at another very similar discussion in this repo, but my problem is likely different. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
When pointing Triton to
But when I point Triton to |
Beta Was this translation helpful? Give feedback.
-
The problem was just that I had to add If anybody comes across this post, remember to also add your deployment environment to the OpenTelemetry tracing options: One more thing that might be useful to future readers: Triton seems to only emit logs at startup. So if you don't see logs, in theory that's a good sign 😅 |
Beta Was this translation helpful? Give feedback.
The problem was just that I had to add
/v1/traces
to the URL in the options. See this other issue.If anybody comes across this post, remember to also add your deployment environment to the OpenTelemetry tracing options:
--trace-config opentelemetry,resource=deployment.environment.name=${ENVIRONMENT}
. The issue for me was that the DataDog trace explorer UI automatically addedenv:dev
to my search terms, but Triton did not have anenv
set. Just removingenv:dev
from the search terms in the UI (or setting the above option in Triton withENVIRONMENT=dev
) solved the mystery.One more thing that might be useful to future readers: Triton seems to only emit logs at startup. So if you don't see …