Skip to content

Correctly forward multiplexed instruments to factories upon destruction#222

Merged
kukushechkin merged 1 commit into
apple:mainfrom
kukushechkin:fix-multiplex-metrics-factory
May 7, 2026
Merged

Correctly forward multiplexed instruments to factories upon destruction#222
kukushechkin merged 1 commit into
apple:mainfrom
kukushechkin:fix-multiplex-metrics-factory

Conversation

@kukushechkin

Copy link
Copy Markdown
Contributor

Correctly forward multiplexed instruments to factories upon destruction.

Motivation:

Factories inside MultiplexMetricsHandler receive MuxXXX instruments instead of instruments they created during destruction. They have no idea what to do with them. For example swift-otel silently drops such an unknown instrument without destroying it.

Modifications:

Forward underlying instruments to the corresponding factories.

Result:

Multiplexed instruments can be correctly destroyed by their factories.

@kukushechkin kukushechkin added the 🔨 semver/patch No public API change. label May 6, 2026
@kukushechkin kukushechkin requested a review from glbrntt May 6, 2026 13:16
@kukushechkin kukushechkin merged commit edb8546 into apple:main May 7, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants