Skip to content

logging export drops for otel now#912

Merged
i3149 merged 6 commits into
mainfrom
better-otel-export-drop
Jun 29, 2026
Merged

logging export drops for otel now#912
i3149 merged 6 commits into
mainfrom
better-otel-export-drop

Conversation

@i3149

@i3149 i3149 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Closes #908

Better logging for otel.

Copilot AI review requested due to automatic review settings June 25, 2026 15:21

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.

Pull request overview

This PR improves observability of the OTEL non-blocking export path by emitting a log message when the export channel is full and a metric sample is dropped, helping users identify which metrics are affected (per Issue #908).

Changes:

  • Add a warning log on OTEL export drop events, including the metric name being dropped.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/formats/otel/otel.go
@i3149

i3149 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@dconnolly-sfdc, does this work for your use case? I'm nervous about logging at warn level in the hot loop of all exports.

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread pkg/formats/otel/otel.go
Comment thread pkg/formats/otel/otel.go
Comment thread pkg/formats/otel/otel.go Outdated
Comment on lines +236 to +238
f.metrics.ExportDrops.Inc(1)
if !f.warnFull[m.Name] {
f.Warnf("OTEL channel full, dropping sample for metric=%s", m.Name)
i3149 and others added 3 commits June 29, 2026 13:08
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@i3149 i3149 merged commit 6d64de4 into main Jun 29, 2026
2 checks passed
@i3149 i3149 deleted the better-otel-export-drop branch June 29, 2026 20:36
@dconnolly-sfdc

Copy link
Copy Markdown

@i3149 yes Ian, this will work for us

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.

otel.no_block enhanced logging when chan is full

3 participants