-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[receiver/prometheusreceiver] Exemplar Support #14132
[receiver/prometheusreceiver] Exemplar Support #14132
Conversation
b6b2045
to
09d72f5
Compare
@bogdandrutu Thanks a lot for the review. Addressed the comments |
@ayandapalli you should comment on all my comments, and resolve them when you did. |
if mg == nil { | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can this happen? We don't do this check in any other func.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are accessing mg.exemplars
in the nextline, have this check just to avoid any kind of nil access even in the future
e6d518a
to
ef30660
Compare
35def41
to
139f831
Compare
dae482f
to
cde77f6
Compare
@dashpole @Aneurysm9 Happy to address any comments further. Can you please help me to get this merged? Thanks in advance. |
Add exemplar support to Prometheus Receiver Co-authored-by: Anthony Mirabella <[email protected]>
Description:
Add exemplar support to Prometheus Receiver
Link to tracking Issue:
#8353
Testing:
Added multiple unit tests for all possible scenarios
AppendExemplar
method is called without callingAppend
method