
























1
Hello, I want to send traces and metrics (if it has) of my LangChain apps to the back-end OpenTelemetry Collector along with other apps. This time I do not want to install a local LangSmith server. Is it possible?
hi @liurui-1
try to install langsmith[otel], then set:
LANGSMITH_OTEL_ENABLED=true
LANGSMITH_OTEL_ONLY=true # skip LangSmith writer entirely
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
2 Likes
liurui-1 3
Hi @pawel-twardziak , Thanks a lot! Your answer works. One thing I see is that environment variable “LANGSMITH_TRACING=true” is still required.
The environment variables I’m using are:
export LANGSMITH_TRACING=true
export LANGSMITH_OTEL_ENABLED=true
export LANGSMITH_OTEL_ONLY=true
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
export LS_APM_OTEL_ENABLED=true
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
export OTEL_SERVICE_NAME=mylangchain
1 Like
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。