Skip to content
BENIBIX Learn

OTEL_LOG_TOOL_DETAILS

AI⌨️ Claude CodeConfiguration

Also known as OTEL_LOG_TOOL_CONTENT

Set to 1, it adds tool inputs and names to telemetry.

Think of it like

It is like a work log that also lists which tools were used and how.

Example

Jack sees high cost but not where it comes from. With this on, his charts name the MCP server that eats most tokens.

Why it matters

Without names, cost charts say how much but not which tool. This fills that gap.

Definition

OTEL_LOG_TOOL_DETAILS set to 1 adds tool details to the logs. That means what each tool was given, MCP server names, error text and the real names of skills and agents. It is off by default to keep data private. A twin, with CONTENT in the name, adds what a tool gave back.

Example code

bash
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_LOG_TOOL_DETAILS=1
claude
See which tools ran and with what.

Common mistake

Turning it on and sharing the logs widely. Tool inputs can hold file paths and secrets.

Key takeaways

  1. 1
    Inputs and names. In telemetry.
  2. 2
    Off by default. Protects data.
  3. 3
    Content has a twin. TOOL_CONTENT.