Skip to content

[connector/spanmetrics] exclude all resource attributes in spanmetrics#42760

Merged
atoulme merged 1 commit into
open-telemetry:mainfrom
Frapschen:drop-resource-attribute-from-span
Oct 4, 2025
Merged

[connector/spanmetrics] exclude all resource attributes in spanmetrics#42760
atoulme merged 1 commit into
open-telemetry:mainfrom
Frapschen:drop-resource-attribute-from-span

Conversation

@Frapschen
Copy link
Copy Markdown
Contributor

@Frapschen Frapschen commented Sep 18, 2025

Description

As we discussed #42103 (comment), I decided to exclude all resource attributes in spanmetrics.

Note: fix a typo in useSecondAsDefaultMetricsUnit feature gate ReferenceURL

Link to tracking issue

Fixes #42103

Testing

Documentation

@Frapschen Frapschen requested a review from a team as a code owner September 18, 2025 06:15
@Frapschen Frapschen changed the title Exclude all resource attributes in spanmetrics [connector/spanmetrics] exclude all resource attributes in spanmetrics Sep 18, 2025
Comment thread .chloggen/drop-resource-attribute-from-span.yaml
@Frapschen Frapschen force-pushed the drop-resource-attribute-from-span branch from c3e943b to eab7508 Compare September 23, 2025 02:50
@Frapschen Frapschen requested a review from iblancasa September 23, 2025 02:50
@Frapschen Frapschen force-pushed the drop-resource-attribute-from-span branch from b70923a to 60196c1 Compare September 30, 2025 03:09
@Frapschen Frapschen marked this pull request as ready for review September 30, 2025 03:09
@atoulme atoulme merged commit c9f10df into open-telemetry:main Oct 4, 2025
190 checks passed
@github-actions github-actions Bot added this to the next release milestone Oct 4, 2025
@Frapschen Frapschen deleted the drop-resource-attribute-from-span branch October 9, 2025 02:46
codeboten pushed a commit that referenced this pull request May 15, 2026
#### Description
- Migrate programatically registered feature gates to `metadata.yaml`.
Kept comments/TODO intact as I assumed they were committed for a reason
in the first place.
- `from_version` for each gate was determined via `git describe
--contains <commit>` on the commit that introduced it:
  - `connector.spanmetrics.legacyMetricNames` → `v0.109.0` (#34485)
- `connector.spanmetrics.includeCollectorInstanceID` → `v0.136.0`
(#41865)
- `connector.spanmetrics.useSecondAsDefaultMetricsUnit` → `v0.137.0`
(#42761)
  - `connector.spanmetrics.excludeResourceMetrics` → `v0.137.0` (#42760)
- `spanmetrics.statusCodeConvention.useOtelPrefix` → `v0.141.0` (#43000)
- `spanmetrics.statusCodeConvention.useOtelPrefix` had no
`reference_url` in the original registration, so I used the implementing
PR as the reference URL as the issue was only partially fixed.
- `connector_test.go` already imports `google.golang.org/grpc/metadata`,
so the internal `metadata` package was imported with the alias
`spanmetricsmetadata` to avoid a name conflict

#### Link to tracking issue
Part of #46116

#### Testing
- `make` in the component directory
- `make gogci` in root dir

#### Documentation
- `connector/spanmetricsconnector/documentation.md` was generated via
`make generate`
ben-trans pushed a commit to ben-trans/opentelemetry-collector-contrib that referenced this pull request May 25, 2026
…ry#48281)

#### Description
- Migrate programatically registered feature gates to `metadata.yaml`.
Kept comments/TODO intact as I assumed they were committed for a reason
in the first place.
- `from_version` for each gate was determined via `git describe
--contains <commit>` on the commit that introduced it:
  - `connector.spanmetrics.legacyMetricNames` → `v0.109.0` (open-telemetry#34485)
- `connector.spanmetrics.includeCollectorInstanceID` → `v0.136.0`
(open-telemetry#41865)
- `connector.spanmetrics.useSecondAsDefaultMetricsUnit` → `v0.137.0`
(open-telemetry#42761)
  - `connector.spanmetrics.excludeResourceMetrics` → `v0.137.0` (open-telemetry#42760)
- `spanmetrics.statusCodeConvention.useOtelPrefix` → `v0.141.0` (open-telemetry#43000)
- `spanmetrics.statusCodeConvention.useOtelPrefix` had no
`reference_url` in the original registration, so I used the implementing
PR as the reference URL as the issue was only partially fixed.
- `connector_test.go` already imports `google.golang.org/grpc/metadata`,
so the internal `metadata` package was imported with the alias
`spanmetricsmetadata` to avoid a name conflict

#### Link to tracking issue
Part of open-telemetry#46116

#### Testing
- `make` in the component directory
- `make gogci` in root dir

#### Documentation
- `connector/spanmetricsconnector/documentation.md` was generated via
`make generate`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[connector/spanmetrics] improvements to config and schema of output RED metrics

5 participants