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

Correct tracer buffer metric counting #1182

Merged
merged 1 commit into from Sep 23, 2020
Merged

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Sep 21, 2020

Our health metrics counters for the TraceBuffer were not consistent among each other.

Before this change buffer_accepted_lengths had the current number of spans in the buffer, but this value is already covered by queue_spans. The object was for buffer_accepted_lengths to have the total cumulative number of spans pushed into the buffer.

All values should be consistent now with this PR:

  • Cumulative total: queue_accepted, queue_accepted_lengths, queue_dropped
  • Current value: queue_max_length, queue_spans, queue_length

@marcotc marcotc added the core Involves Datadog core libraries label Sep 21, 2020
@marcotc marcotc requested a review from a team September 21, 2020 18:53
@marcotc marcotc self-assigned this Sep 21, 2020
ericmustin
ericmustin previously approved these changes Sep 21, 2020
Copy link
Contributor

@ericmustin ericmustin left a comment

Choose a reason for hiding this comment

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

:shipit:

@marcotc marcotc changed the base branch from perf/buffer-perf to master September 21, 2020 20:09
@marcotc marcotc dismissed ericmustin’s stale review September 21, 2020 20:09

The base branch was changed.

@marcotc
Copy link
Member Author

marcotc commented Sep 21, 2020

@ericmustin, I rebased, since this PR was previously not based on master.

@marcotc marcotc merged commit f8ca3b5 into master Sep 23, 2020
@marcotc marcotc deleted the metrics/fix-buffer-count branch September 23, 2020 17:53
@marcotc marcotc added this to the 0.41.0 milestone Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants