---
type: "post"
id: "claude-code-mode-now-works-with-opentelemetry-tracing-242b04"
slug: "claude-code-mode-now-works-with-opentelemetry-tracing-242b04"
title: "Claude Code Mode now works with OpenTelemetry tracing enabled"
description: "Claude Code 2.1.333 adds tracing spans for tool calls made in Code Mode, extending observability into the tool-call path."
retrieval_nugget: "Claude Code 2.1.333 adds tracing spans for tool calls made in Code Mode, extending observability into the tool-call path."
published_at: "2026-12-02"
updated_at: "2026-12-02"
record_date: "2026-12-02"
date_kind: "published_at"
topics: ["claude","claude-code","anthropic"]
entities: ["Claude Code","Anthropic","OpenTelemetry"]
related_patterns: ["harness-architecture-outlives-model-choice"]
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://github.com/anthropics/claude-code/releases/tag/v2.1.333"
source_urls: ["https://github.com/anthropics/claude-code/releases/tag/v2.1.333"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-12-02T17:40:41.335Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":null,"editorial_value":"medium","human_review":"selective"}
citations: [{"claim":"","quotes":["Canonical topic: Claude Code 2.1.333 adds tool-call tracing spans in Code Mode. 1 accepted source item(s)."],"cite_url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.333#:~:text=Canonical%20topic%3A%20Claude%20Code%202.1.333%20adds%20tool%2Dcall%20tracing%20spans%20in%20Code%20Mode.%201%20accepted%20source%20item%28s%29.","source_url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.333","publisher":"github.com"},{"claim":"","quotes":["Canonical topic: Claude Code 2.1.333 adds tool-call tracing spans in Code Mode. 1 accepted source item(s)."],"cite_url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.333#:~:text=Canonical%20topic%3A%20Claude%20Code%202.1.333%20adds%20tool%2Dcall%20tracing%20spans%20in%20Code%20Mode.%201%20accepted%20source%20item%28s%29.","source_url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.333","publisher":"github.com"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:claude-code-mode-now-works-with-opentelemetry-tracing-242b04"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/claude-code-mode-now-works-with-opentelemetry-tracing-242b04/","markdown":"https://newruntime.com/posts/claude-code-mode-now-works-with-opentelemetry-tracing-242b04.md","json":"https://newruntime.com/posts/claude-code-mode-now-works-with-opentelemetry-tracing-242b04.json"}
markdown_url: "https://newruntime.com/posts/claude-code-mode-now-works-with-opentelemetry-tracing-242b04.md"
---

# Claude Code Mode now works with OpenTelemetry tracing enabled

## Retrieval answer

Claude Code 2.1.333 adds tracing spans for tool calls made in Code Mode, extending observability into the tool-call path.

## Summary

Claude Code 2.1.333 adds tracing spans for tool calls made in Code Mode, extending observability into the tool-call path. ([github.com](https://github.com/anthropics/claude-code/releases/tag/v2.1.333#:~:text=Canonical%20topic%3A%20Claude%20Code%202.1.333%20adds%20tool%2Dcall%20tracing%20spans%20in%20Code%20Mode.%201%20accepted%20source%20item%28s%29.))

## What happened

Separately, the release fixes memory growth that could reach gigabytes during long sessions with OpenTelemetry content logging enabled, especially when the collector is slow or down.

## What the archive adds

Code Mode was introduced as an experimental way for Claude to call tools by writing JavaScript; an earlier update added OpenTelemetry events and metrics support. ([earlier New Runtime note](https://newruntime.com/posts/claude-code-2-1-323-adds-experimental-code-af152c/))

## Limits and uncertainty

The release excerpt does not specify how to enable tracing or describe the span fields. ([github.com](https://github.com/anthropics/claude-code/releases/tag/v2.1.333#:~:text=Canonical%20topic%3A%20Claude%20Code%202.1.333%20adds%20tool%2Dcall%20tracing%20spans%20in%20Code%20Mode.%201%20accepted%20source%20item%28s%29.))

## Reader takeaway

Claude Code 2.1.333 adds tracing spans for tool calls in Code Mode, making execution more observable. It also fixes gigabytes of memory growth in long sessions when OpenTelemetry content logging is enabled, particularly if the collector is slow or unavailable. The release excerpt does not explain how to enable tracing or which span fields are exposed.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- topic hub: [Anthropic](https://newruntime.com/topics/anthropic.md): Explore the anthropic topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
