Skip to content

adding batch size metric to durable emitter - #2445

Merged
patrickhuie19 merged 1 commit into
mainfrom
durableemitter-insert-batch-size-metric
Oct 6, 2026
Merged

patrickhuie19 merged 1 commit into
mainfrom
durableemitter-insert-batch-size-metric

Conversation

@patrickhuie19

Copy link
Copy Markdown
Contributor

Requires

Supports

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

👋 patrickhuie19, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

📊 API Diff Results

No changes detected for module github.com/smartcontractkit/chainlink-common

View full report

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

Only a minor test-coverage nit remains; no blocking issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Adds OpenTelemetry instrumentation for durable-emitter insert batch sizes, including success/error labeling.

Changes:

  • Registers and records the insert-batch size histogram.
  • Adds metric export and coalescing coverage.
File Summary
pkg/​durableemitter/​durable_emitter.go Records coalesced insert batch sizes.
pkg/​durableemitter/​durable_emitter_test.go Tests metric recording and aggregation.
pkg/​durableemitter/​durable_emitter_metrics.go Defines and registers the histogram metric.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@patrickhuie19
patrickhuie19 added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit a1c977f Oct 6, 2026
37 checks passed
@patrickhuie19
patrickhuie19 deleted the durableemitter-insert-batch-size-metric branch October 6, 2026 17:33
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.

4 participants