Skip to content

Improve discoverability of what are dimension tuples#224

Merged
kukushechkin merged 3 commits into
apple:mainfrom
kukushechkin:improve-dimensions-tuple-values-discoverability
May 7, 2026
Merged

Improve discoverability of what are dimension tuples#224
kukushechkin merged 3 commits into
apple:mainfrom
kukushechkin:improve-dimensions-tuple-values-discoverability

Conversation

@kukushechkin

Copy link
Copy Markdown
Contributor

Add explanation to dimensions arguments of which tuple value is what.

Motivation:

We have ([String, String]) all over the swift-metrics, but never explain which tuple value is what (even if it looks obvious). We cannot change this to a type alias without breaking the API (even if a typealias is source-compatible with the type it represents), as suggested in #43. But we can at least explain which tuple value is what.

Modifications:

dimensions argument comments now have (name, value) in the description.

Result:

Dimensions tuple structure is discoverable without digging through the examples.

@kukushechkin kukushechkin requested a review from heckj May 7, 2026 14:39
@kukushechkin kukushechkin added the semver/none No version bump required. label May 7, 2026

@heckj heckj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Generally looks great, a few minor tweaks while we're here

Comment thread Sources/CoreMetrics/Metrics.swift Outdated
Comment thread Sources/Metrics/Metrics.swift Outdated
Comment thread Sources/Metrics/Metrics.swift Outdated
@kukushechkin kukushechkin merged commit c399c06 into apple:main May 7, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants