[DOCS] Monitoring-usage page does not list the `model` attribute on `claude_code.lines_of_code.count` added in v2.1.172

Open 💬 0 comments Opened Jun 10, 2026 by coygeek

Documentation Type

Missing documentation

Documentation Location

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

Section/Topic

"Lines of code counter" subsection under "Metric details" (~line 444–448)

Current Documentation

#### Lines of code counter Incremented when code is added or removed. Attributes: All standard attributes type: ("added", "removed")

What's Wrong or Missing?

The v2.1.172 release notes ship a new attribute:

Added model attribute to the claude_code.lines_of_code.count OTEL metric

The "Lines of code counter" section only lists type as the metric-specific attribute, so users querying their metrics backend by model (e.g. to break down added/removed lines by Sonnet vs Opus) have no signal that the label exists.

Suggested Improvement

Update the attributes list to:

Attributes: All standard attributes type: ("added", "removed") * model: identifier of the model that produced the edit (e.g. claude-sonnet-4-6, claude-opus-4-8)

Impact

Medium - Makes feature difficult to understand

Additional Context

Version: v2.1.172. Other metrics in the same section may also have metric-specific attributes that were added without docs updates; the page has had a steady stream of app.entrypoint-style follow-ups (e.g. issue #62675).

View original on GitHub ↗