Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Locks to SwiftMetricsShim #159

Merged

Conversation

Sherlouk
Copy link
Contributor

@Sherlouk Sherlouk commented Apr 6, 2021

Also change access control on metricName setters to private to minimise leakage outside of the class.

Hopefully addresses the concerns of @ktoso in their code review on #155.

Also change access control on metricName setters to private to minimise leakage outside of the class.
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.

LGTM, I will give some time for @ktoso to review before merging

Copy link

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Looks good :)

Might want to add a test that creates a bunch of metrics concurrently? :-)

Sources/SwiftMetricsShim/MetricHandlers.swift Outdated Show resolved Hide resolved
@ktoso
Copy link

ktoso commented Apr 7, 2021

Thanks for the ping! More than happy to review 👍

@Sherlouk
Copy link
Contributor Author

Sherlouk commented Apr 7, 2021

Thanks for taking a look Konrad 🙂

@ktoso
Copy link

ktoso commented Apr 7, 2021

Looking good, now with the let even better :-) Thanks for the ping

@nachoBonafonte nachoBonafonte merged commit b8603e2 into open-telemetry:main Apr 8, 2021
@Sherlouk Sherlouk deleted the sherlouk/MetricsShimFix branch April 8, 2021 08:32
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.

3 participants