Skip to content

Filter out auto-configured local exports when drains are configured#181

Merged
dvoytenko merged 3 commits intomainfrom
dima/filter-out-auto-exporters-when-drained
Oct 17, 2025
Merged

Filter out auto-configured local exports when drains are configured#181
dvoytenko merged 3 commits intomainfrom
dima/filter-out-auto-exporters-when-drained

Conversation

@dvoytenko
Copy link
Member

@dvoytenko dvoytenko commented Oct 15, 2025

This approach allows us to avoid double-sending of traces: one via a drain, and the other via local exporter. Over time this can be improved for per-destination filtering.

Blocked on https://github.com/vercel/proxy/pull/18582

@vercel
Copy link

vercel bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
otel-sample Ready Ready Preview Comment Oct 17, 2025 6:06pm
otel-site Ready Ready Preview Comment Oct 17, 2025 6:06pm

@dvoytenko dvoytenko merged commit 14f773c into main Oct 17, 2025
8 checks passed
@dvoytenko dvoytenko deleted the dima/filter-out-auto-exporters-when-drained branch October 17, 2025 18:35
dvoytenko added a commit that referenced this pull request Oct 17, 2025
…red (#182)

This approach allows us to avoid double-sending of traces: one via a
drain, and the other via local exporter. Over time this can be improved
for per-destination filtering.

The original 2.x: #181
@github-actions github-actions bot mentioned this pull request Oct 20, 2025
dvoytenko pushed a commit that referenced this pull request Oct 20, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/otel@2.1.0

### Minor Changes

- [#181](#181)
[`14f773c`](14f773c)
Thanks [@dvoytenko](https://github.com/dvoytenko)! - Ignore
auto-configuration based on the OTEL_EXPORTER_OTLP_ env vars when trace
drains are used. This avoids duplicate trace export.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Darpan Kakadia <kakadiadarpan@gmail.com>
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