anthropics / anthropics/claude-agent-sdk-typescript

Observability with OpenTelemetry

Aperta
#82 10 commenti 8 reazioni 0 assegnatari Vedi su GitHub
documentation question
Lingua principale
Shell
Stelle
1.8k
Fork
226
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I've seen project such as this one which leverage Claude Agent SDK hooks to create what I suspect are OpenTelemetry spans.

https://github.com/disler/claude-code-hooks-multi-agent-observability?tab=readme-ov-file

OpenTelemetry itself (https://opentelemetry.io/ecosystem/integrations/) lists this page and references Claude Code.

https://code.claude.com/docs/en/monitoring-usage

```
# 1. Enable telemetry
export CLAUDE_CODE_ENABLE_TELEMETRY=1
```

Ultimately I'd like to deploy Claude Agents using the SDK to my own hosting (https://platform.claude.com/docs/en/agent-sdk/hosting) and use Langfuse for my telemetry provider. But not finding a lot of documentation on which way to go here (hooks with manual work or env vars automatically) and thought I would ask here.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.