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 observer instrument #539

Merged
merged 17 commits into from
Mar 16, 2020
Merged

Add observer instrument #539

merged 17 commits into from
Mar 16, 2020

Conversation

cijothomas
Copy link
Member

Fix #531
Observer instruments do not have access to context, and they also don't expose public bound instrument, as metrics are observed via callbacks only.
Observer uses LastValue aggregator.

Additional Note: Observer instrument part is implemented without generics. i.e Int64Observer and DoubleObserver are separate classes.
If all okay, a follow up PR would replace generics for all other instruments as well.

@cijothomas cijothomas closed this Mar 13, 2020
@cijothomas cijothomas reopened this Mar 13, 2020
Copy link
Member

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

Generally looks good 👍 I've made some minor suggestions.

@cijothomas
Copy link
Member Author

@MikeGoldsmith Addressed comments. Please re-review.

@cijothomas
Copy link
Member Author

@SergeyKanzhelev Please merge.

@SergeyKanzhelev SergeyKanzhelev merged commit de3b049 into open-telemetry:master Mar 16, 2020
Yun-Ting pushed a commit to Yun-Ting/opentelemetry-dotnet that referenced this pull request Oct 13, 2022
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.

Implement Observer instrument and corresponding aggregation.
3 participants