Skip to content

fix: correctly publish the hedgedmetrics counter with delta#4078

Merged
joe-elliott merged 6 commits intografana:mainfrom
electron0zero:fix_hedged_counter
Sep 13, 2024
Merged

fix: correctly publish the hedgedmetrics counter with delta#4078
joe-elliott merged 6 commits intografana:mainfrom
electron0zero:fix_hedged_counter

Conversation

@electron0zero
Copy link
Copy Markdown
Member

@electron0zero electron0zero commented Sep 12, 2024

What this PR does:
hedgedhttp.Stats is already a counter so we were incrementing the counter by the value of hedgedhttp.Stats counter.

correctly calculate delta and increment the counter for hedgedhttp.Stats

Which issue(s) this PR fixes:
fixes #4060, we missed this detail of hedgedhttp.Stats in #4063

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Comment thread CHANGELOG.md Outdated
## main / unreleased

* [BUGFIX] Correctly publish the hedgedmetrics counter with delta [#4078](https://github.com/grafana/tempo/pull/4078) (@electron0zero)
* [BUGFIX] Replace hedged requests roundtrips total with a counter. [#4063](https://github.com/grafana/tempo/pull/4063) (@galalen)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this entry was in # v2.6.0 section, should be in ## main / unreleased so fixed it.

Comment thread pkg/hedgedmetrics/metrics.go Outdated
Copy link
Copy Markdown
Collaborator

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

lgtm, me!

@joe-elliott joe-elliott merged commit 85950ca into grafana:main Sep 13, 2024
@electron0zero electron0zero deleted the fix_hedged_counter branch September 17, 2024 12:20
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.

Replace hedged requests roundtrips total with a counter

2 participants