﻿# Identical metric names: preserve instrumentation scope through serving telemetry

A practical investigation of identical metric names: preserve instrumentation scope through serving telemetry, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-observe-metric-name-instrumentation-scope/
Language: en

## The diagnostic situation

A serving application and an auto-instrumentation package both emit a duration metric with the same name. Their units or operation boundaries differ. An export adapter keeps the name but flattens instrumentation scope, creating an apparently continuous chart across an upgrade. The displayed change may come from merged instruments rather than a change in model execution.

## Why the observation changes meaning

The OpenTelemetry data model groups metric streams using originating resource, instrumentation scope and metric name, with additional identifying semantics such as type and unit. Name equality is not sufficient equivalence. The SDK also treats distinct meters as separate registration namespaces. A destination that cannot represent these distinctions needs an explicit mapping rather than silently collapsing them.

## Define the instrumentation contract

Inventory instrument names with their scope name, scope version, unit, type and observed operation. Define stable destination names or labels that retain necessary distinctions without unbounded dimensions. Keep process resource identity separate from instrumentation library identity. A new library version does not necessarily mean a new model release, while a model rollout need not change the instrumentation scope.

## A bounded verification procedure

Create synthetic observations from distinct meters using the same instrument name but deliberately different documented meanings. Capture original OTLP data and the final destination representation. Compare grouping and queries before and after the instrumentation update. Include an incompatible unit or type fixture and verify that the pipeline rejects, distinguishes or otherwise documents it rather than merging by name alone.

## Evidence required for acceptance

Acceptance evidence includes an instrument inventory, adapter mapping, exported records and the dashboard query. Show which dimensions survive conversion and which require renamed streams. Validate historical comparison across the update rather than only current scrape success. A schema conflict warning is evidence to investigate, not an instruction to discard resource or scope until the duplicate name disappears.

## Failure cases and limits

Separate scopes can still observe the same application operation, so preserving identity alone does not make their totals additive. Conversely, identical scope metadata does not repair inconsistent instrument definitions. This protocol validates stream distinguishability through the tested conversion path. It cannot prove measurement equivalence across libraries or recover previously merged historical populations after source distinctions have been discarded.

## Primary references and related reading

A metric name is only part of its identity; resource, instrumentation scope and stream semantics must remain distinguishable. [OpenTelemetry metrics data model](https://opentelemetry.io/docs/specs/otel/metrics/data-model/); [OpenTelemetry metrics SDK](https://opentelemetry.io/docs/specs/otel/metrics/sdk/).

The proposed investigation of metric name instrumentation scope is not an executed deployment benchmark. Related reading: [Model aliases and revisions: provider response identity](/journal/provider-model-alias-revision-identity/); [Provider metric cardinality: request IDs do not belong in labels](/journal/provider-metric-cardinality-budget/).
