# OTEL_LOG_TOOL_DETAILS

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** OTEL_LOG_TOOL_CONTENT

## Think of it like

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

## 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

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

## Example code

```bash
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_LOG_TOOL_DETAILS=1
claude
```

See which tools ran and with what.

## Why it matters

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

## Common mistake

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

## Three principles

- **Inputs and names.** In telemetry.
- **Off by default.** Protects data.
- **Content has a twin.** TOOL_CONTENT.

## Related terms

- [OTEL_LOG_USER_PROMPTS](https://learn.benibix.com/term/ai/otel-log-user-prompts-variable)
- [CLAUDE_CODE_ENABLE_TELEMETRY](https://learn.benibix.com/term/ai/claude-code-enable-telemetry-variable)
- [Claude Code Built-in Tool](https://learn.benibix.com/term/ai/claude-code-built-in-tool)

---

Source: https://learn.benibix.com/term/ai/otel-log-tool-details-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
