Docs: document cursor persist truncation OpenTelemetry metrics#1118
Merged
lhotari merged 2 commits intoapache:mainfrom Apr 21, 2026
Merged
Docs: document cursor persist truncation OpenTelemetry metrics#1118lhotari merged 2 commits intoapache:mainfrom
lhotari merged 2 commits intoapache:mainfrom
Conversation
lhotari
approved these changes
Apr 18, 2026
After review on apache/pulsar#25548, the two new counters emit the cursor's standard attribute set (pulsar.namespace, pulsar.managed_ledger.name, pulsar.managed_ledger.cursor.name) instead of custom managedLedger/cursor keys. Update the reference doc to match. See apache/pulsar#25548.
Contributor
Author
|
hi @lhotari, I've updated the doc according the code in the broker repo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✅ Contribution Checklist
master(not in any released version yet).Summary
Document two new OpenTelemetry counters introduced in apache/pulsar#25548:
pulsar.broker.managed_ledger.cursor.persist.unacked_ranges.truncated— emitted when a cursor exceedsmanagedLedgerMaxUnackedRangesToPersistand ack state is truncated at persistence.pulsar.broker.managed_ledger.cursor.persist.batch_deleted_indexes.truncated— emitted when a cursor exceedsmanagedLedgerMaxBatchDeletedIndexToPersistand batch deleted index state is truncated at persistence.Both counters are tagged with the cursor's standard attributes (pulsar.namespace, pulsar.managed_ledger.name, pulsar.managed_ledger.cursor.name) — the same set used by the other cursor metrics in this section.
Added under the existing
### Managed Ledger Cursor metricssection ofreference-metrics-opentelemetry.md, following the format used by the surrounding metrics in that section.See apache/pulsar#25548.