Skip to content

Commit fcf5bc9

Browse files
authored
fix: Typo on Claude Code tracing docs (#937)
Also adding a note on how OTEL events are limited in information
1 parent 87140d6 commit fcf5bc9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/observability/how_to_guides/claude_code.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export OTEL_LOGS_EXPORTER=otlp
2424
export OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=http/json
2525

2626
// Claude Code Logs are translated to Spans by LangSmith
27-
export OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=http://api.smith.langchain.com/otel/v1/claude_code
27+
export OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=https://api.smith.langchain.com/otel/v1/claude_code
2828

2929
// Pass your API key and desired tracing project through headers
3030
export OTEL_EXPORTER_OTLP_HEADERS="x-api-key=<api-key>,Langsmith-Project=<project-name>"
@@ -36,6 +36,10 @@ export OTEL_LOG_USER_PROMPTS=1
3636
claude
3737
```
3838

39+
:::note Claude Code events
40+
Claude Code emits [open telemetry standard events](https://docs.anthropic.com/en/docs/claude-code/monitoring-usage#events) for monitoring usage, but this does not include the actual prompts and messages that go to the LLM.
41+
:::
42+
3943
:::note Self-hosted deployments
4044
If you're self-hosting LangSmith, replace the base endpoint with your LangSmith api endpoint and append `/api/v1`. For example: `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=https://ai-company.com/api/v1/otel/v1/claude_code`
4145
:::

0 commit comments

Comments
 (0)