-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix exemplars support #6140
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
fix exemplars support #6140
Conversation
Signed-off-by: Anne-Elisabeth Lelièvre <[email protected]>
|
||
key := metricKey("metricKey") | ||
next := new(consumertest.TracesSink) | ||
p, err := newProcessor(zap.NewNop(), cfg, next) |
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.
I suggest using zaptest.NewTestLogger(t)
instead of the Nop logger here.
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.
@MovieStoreGuy done
Signed-off-by: Anne-Elisabeth Lelièvre <[email protected]>
Signed-off-by: Anne-Elisabeth Lelièvre <[email protected]>
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
@kbrockhoff, @bogdandrutu This PR is ready for review if you have time to look at it, thanks. |
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.
Thanks for fixing this, pinging @albertteoh as the codeowner for this component.
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
* fix exemplars support Signed-off-by: Anne-Elisabeth Lelièvre <[email protected]> * switch test logger from zap.Nop to zaptest. Signed-off-by: Anne-Elisabeth Lelièvre <[email protected]> * fix lint error Signed-off-by: Anne-Elisabeth Lelièvre <[email protected]>
Signed-off-by: Anne-Elisabeth Lelièvre [email protected]
Hello, this is a fix to resolve a problem by adding exemplars to the metrics in the span metrics processor.
When I tried to send the metrics to prometheus , I got this error:
And when I tried to send to Cortex, I got this error:
By analyzing these errors, I assumed that there was a problem with the index of the exemplar data map.
So to resolve this issue, instead of adding exemplars to the a specific bucket index, I propose to simply append the exemplar data and reset the entire exemplars map so the next trace will recreate all the data structure. I have retested and everything seems to be sent correctly now on my end.