Skip to content

Observability with OpenTelemetry #82

@metaskills

Description

@metaskills

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions