Skip to content

Conversation

bryce-b
Copy link
Member

@bryce-b bryce-b commented Jun 13, 2025

This PR completely removes the old metrics and replaces the tests and various usages with StableMetrics
including:

  • Prometheus exporter
  • persistent metric exporter
  • swift metrics

Other details:

@bryce-b bryce-b force-pushed the metrics-type-refactor branch from 97d4108 to 7932374 Compare June 18, 2025 17:58
@bryce-b bryce-b force-pushed the metrics-type-refactor branch from b39242a to da0dbc4 Compare June 23, 2025 17:32
}

public func encode(to encoder: any Encoder) throws {
var container = try encoder.container(keyedBy: CodingKeys.self)
Copy link
Member Author

Choose a reason for hiding this comment

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

doesn't need a try

Copy link
Member

@nachoBonafonte nachoBonafonte left a comment

Choose a reason for hiding this comment

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

Really great work, it has really take long getting here but you did it, congrats!!!
There is one thing I am not sure if should also be added or what are the drawback, just remove all the Stable from the name , eg StableMeterProviderSdk -> MeterProviderSdk and keep a type alias with the Stable prefix, like:

public typealias StableMeterProvider = MeterProvider

public protocol MeterProvider: AnyObject {

and

public  typealias StableMeterProviderSdk = MeterProviderSdk

public class MeterProviderSdk: MeterProvider {

But it can also be done in a separate PR.

@bryce-b
Copy link
Member Author

bryce-b commented Jul 1, 2025

@nachoBonafonte I thought that might be too noisy to include in this PR--I was trying to make it a little easier to review. Next PR will remove the term stable from the metrics SDK.

Note: I want to do one more release before merging this PR

@nachoBonafonte
Copy link
Member

@bryce-b Works for me!!

@bryce-b bryce-b enabled auto-merge (squash) July 2, 2025 17:42
@bryce-b bryce-b merged commit f1b1b39 into main Jul 2, 2025
9 checks passed
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.

2 participants