Skip to content

Emit traces for ingester flush operations#812

Merged
annanay25 merged 1 commit intomainfrom
trace-flushes
Jul 14, 2021
Merged

Emit traces for ingester flush operations#812
annanay25 merged 1 commit intomainfrom
trace-flushes

Conversation

@bboreham
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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.

Comment thread modules/ingester/flush.go Outdated
Comment thread modules/ingester/flush.go
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
Copy Markdown
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