Skip to content

[r131] Backport #3305#3319

Merged
mdisibio merged 1 commit intografana:r131from
mdisibio:Backport-r131-3305
Jan 22, 2024
Merged

[r131] Backport #3305#3319
mdisibio merged 1 commit intografana:r131from
mdisibio:Backport-r131-3305

Conversation

@mdisibio
Copy link
Copy Markdown
Contributor

Backport #3305 to r131


What this PR does:
Updates the local-blocks processor to honor the per-tenant override max_trace_bytes. The generators already make use of the per-tenant overrides but this field. This goes one step further than the trace size limits in the ingesters. The ingesters keep track of the historical trace size only for the lifetime of the headblock, and that means long-running traces can eventually append more data. This goes one step further and maintains the historical trace size for as long as the trace is active (continues to send spans).

Which issue(s) this PR fixes:
Fixes #

Checklist

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

* Keep track of trace sizes for the lifetime of the headblock, add metrics

* lint

* Comment

* Fix invalid assumption that all batches have the same trace id. Undo variable name change, review comments

* changelog
@mdisibio mdisibio merged commit 90ceae3 into grafana:r131 Jan 22, 2024
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.

2 participants