Skip to content

fix(opentelemetry-collector): 2 updates for spanMetricsMulti#466

Merged
cazorla19 merged 6 commits into
mainfrom
cds-2997-duplicate-dimensions
Jun 8, 2026
Merged

fix(opentelemetry-collector): 2 updates for spanMetricsMulti#466
cazorla19 merged 6 commits into
mainfrom
cds-2997-duplicate-dimensions

Conversation

@cazorla19

@cazorla19 cazorla19 commented May 26, 2026

Copy link
Copy Markdown
  1. unify spanMetricsMulti dimensions across connectors. Fixes CDS-2997. Routed spanmetrics connectors now inherit the same errorTracking dimensions as spanmetrics/default, with deduplication when those keys are already listed in extraDimensions.

  2. add opt-in spanMetricsMulti connector compatibility defaults. Fixes CDS-3000. Add opt-in presets.spanMetricsMulti.inheritConnectorCompatibilityDefaults so spanmetrics/default and routed spanmetrics/<index> connectors can match single spanMetrics compatibility defaults by setting add_resource_attributes: true and histogram.unit: ms, while keeping existing spanMetricsMulti behavior unchanged by default.

…s connectors

Routed spanmetrics connectors now inherit the same errorTracking dimensions
as spanmetrics/default, with deduplication when those keys are already listed
in extraDimensions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cazorla19 cazorla19 requested review from a team, nicolastakashi and oded-dd as code owners May 26, 2026 14:58
Comment thread charts/opentelemetry-collector/templates/_config.tpl
… backward compatible

Restore prior routed connector dimension behavior by default and add
inheritDefaultDimensions opt-in to align routed connectors with
spanmetrics/default while still deduplicating status code dimensions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cazorla19 cazorla19 requested a review from iblancasa May 26, 2026 15:19
…ompatibility defaults

Keep spanMetricsMulti backward compatible by default while allowing users to opt in to single spanMetrics connector defaults (`add_resource_attributes` and `histogram.unit: ms`) for default and routed connectors.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cazorla19 cazorla19 changed the title fix(opentelemetry-collector): unify spanMetricsMulti dimensions across connectors fix(opentelemetry-collector): 2 fixes for spanMetricsMulti May 27, 2026
@cazorla19 cazorla19 changed the title fix(opentelemetry-collector): 2 fixes for spanMetricsMulti fix(opentelemetry-collector): 2 updates for spanMetricsMulti May 27, 2026
Comment thread charts/opentelemetry-collector/templates/_config.tpl Outdated
@cazorla19 cazorla19 requested a review from douglascamata May 28, 2026 10:02
Comment thread charts/opentelemetry-collector/CHANGELOG.md Outdated
…es breaking by default

Apply unified dimensions and single spanMetrics connector defaults (add_resource_attributes and histogram.unit=ms) to default and routed spanMetricsMulti connectors by default, since APM requires ms-based span metrics.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cazorla19 cazorla19 requested a review from povilasv May 29, 2026 10:27

@povilasv povilasv left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you create some example with spanMetricsMulti?

Or there is one? I cannot find it :D

@cazorla19

Copy link
Copy Markdown
Author

@povilasv it's there :D

charts/opentelemetry-collector/examples/spanmetrics-multiple-preset/

Values: charts/opentelemetry-collector/examples/spanmetrics-multiple-preset/values.yaml
Rendered output: charts/opentelemetry-collector/examples/spanmetrics-multiple-preset/rendered/configmap-agent.yaml

https://github.com/coralogix/opentelemetry-helm-charts/tree/cds-2997-duplicate-dimensions/charts/opentelemetry-collector/examples/spanmetrics-multiple-preset

@cazorla19 cazorla19 requested a review from povilasv June 1, 2026 13:29
@cazorla19 cazorla19 merged commit 5c9d49a into main Jun 8, 2026
7 checks passed
@cazorla19 cazorla19 deleted the cds-2997-duplicate-dimensions branch June 8, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants