Skip to content

Conversation

@majanjua-amzn
Copy link
Contributor

@majanjua-amzn majanjua-amzn commented Oct 22, 2025

Fixes #4698

Changes

Adds the spec for a new AlwaysRecord sampler being proposed in #4698

Notes

Solutions to this problem in multiple supported languages can already be found below:

Checklist

Copy link
Contributor

@jmacd jmacd left a comment

Choose a reason for hiding this comment

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

Looks good to me. As we discussed in Sampling SIG, it will help readers to be reminded somewhere in this text that Exporters are already expected to drop these spans, all we're doing is making it easy to setup non-sampling recorded spans by default.

@majanjua-amzn majanjua-amzn marked this pull request as ready for review October 28, 2025 17:04
@majanjua-amzn majanjua-amzn requested review from a team as code owners October 28, 2025 17:04
@majanjua-amzn
Copy link
Contributor Author

Apologies for the delay, pushed a new revision. Please help to run the workflows again, thanks!

@majanjua-amzn
Copy link
Contributor Author

Perhaps @jmacd could you help to merge? Thanks

@carlosalberto
Copy link
Contributor

Ping @majanjua-amzn (we need a last few details to iron out, but very close to merge this).

@majanjua-amzn
Copy link
Contributor Author

@carlosalberto, could you help to run the workflows again and approve if all looks good now? Thanks

@majanjua-amzn
Copy link
Contributor Author

Question in general: Should these be added to the core or contrib repo? For example:

@majanjua-amzn majanjua-amzn force-pushed the main branch 2 times, most recently from 3a01a76 to 497fea4 Compare November 26, 2025 17:54
@majanjua-amzn
Copy link
Contributor Author

@cijothomas finished another revision, please take a look when you can

Also, if anyone has input on the previous comment regarding where to add this feature, please advise:

Question in general: Should these be added to the core or contrib repo? For example:

@majanjua-amzn
Copy link
Contributor Author

Great, made a final revision with respect to the last comment.

If reviewers could re-approve if all looks good and merge this PR, I can also start finalizing my PRs to each other repo and start contributing the feature to OTel core!

Thanks in advance

@majanjua-amzn
Copy link
Contributor Author

Perhaps @jmacd and @carlosalberto can help provide reviews again, as you folks were early reviewers the first time?

PRs are awaiting the merge of this one in Java, Python, JS, and .NET:

Java: open-telemetry/opentelemetry-java#7877
Python: open-telemetry/opentelemetry-python#4823
JS: open-telemetry/opentelemetry-js#6168
.NET: open-telemetry/opentelemetry-dotnet#6732

@majanjua-amzn
Copy link
Contributor Author

@cijothomas could you help re-approve and merge now? Thanks!

@majanjua-amzn
Copy link
Contributor Author

@MrAlias good callouts, fixed!

@MrAlias
Copy link
Contributor

MrAlias commented Dec 1, 2025

@MrAlias good callouts, fixed!

@majanjua-amzn have you forgotten to push a commit or two? None of my previous comments have been addressed.

@majanjua-amzn
Copy link
Contributor Author

@MrAlias forgot to push, sorry for the double ping!

@majanjua-amzn
Copy link
Contributor Author

Can anyone help to merge now? Thanks!

@carlosalberto carlosalberto added this pull request to the merge queue Dec 2, 2025
Merged via the queue into open-telemetry:main with commit 056983b Dec 2, 2025
7 checks passed
@carlosalberto carlosalberto mentioned this pull request Dec 5, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 12, 2025
### Context

- Make the W3C randomness flag required.

([#4761](#4761))

### Traces

- Deprecate Zipkin exporter document and make exporter implementation
optional.

([#4715](#4715))
- Add spec for `AlwaysRecord` sampler

([#4699](#4699))

### Metrics

- Stabilize `Enabled` API for synchronous instruments.

([#4746](#4746))
- Allow instrument `Enabled` implementation to have additional
optimizations and features.

([#4747](#4747))

### Logs

- Stabilize `LogRecordProcessor.Enabled`.

([#4717](#4717))

### SDK Configuration

- Clarifies that guidance related to boolean environment variables is
not applicable
to other configuration interfaces.
([#4723](#4723))

---------

Co-authored-by: Armin Ruech <7052238+arminru@users.noreply.github.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.

Always process spans / AlwaysRecord Sampler

9 participants