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

Emit traces for ingester flush operations #812

Merged
merged 1 commit into from
Jul 14, 2021
Merged

Emit traces for ingester flush operations #812

merged 1 commit into from
Jul 14, 2021

Conversation

bboreham
Copy link
Contributor

What this PR does:
Create a new span for each flush, log the trace ID, and any error that comes back.

Passing a context in to handleFlush() seems more natural than having it assume it is only called in background context.

Checklist

  • NA Tests updated
  • NA Documentation added
  • CHANGELOG.md updated

Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

LGTM, just left a minor question.

Edit: I can't see the CHANGELOG.md changes.

modules/ingester/flush.go Outdated Show resolved Hide resolved
modules/ingester/flush.go Show resolved Hide resolved
Create a new span for each flush, log the trace ID, and any error that
comes back.

Passing a context in to `handleFlush()` seems more natural than having
it assume it is only called in background context.
@bboreham
Copy link
Contributor Author

Re-pushed with simpler span creation and changelog.

I realise this could be a common util with Cortex; I specifically dislike the current implementation in Cortex so will need to fix that before making them common.

@annanay25 annanay25 merged commit addfa70 into main Jul 14, 2021
@annanay25 annanay25 deleted the trace-flushes branch July 14, 2021 15:01
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.

3 participants