Skip to content

Conversation

@majanjua-amzn
Copy link
Contributor

@majanjua-amzn majanjua-amzn commented Jan 28, 2026

Spec

AlwaysRecordSampler must:

  • Return root sampler's result directly if the sampling decision is RECORD_ONLY or RECORD_AND_SAMPLE
  • Return the root sampler's result with the sampling decision overwritten to RECORD_ONLY if the root sampler's decision is DROP. In this case, we must also respect the root sampler's modifications to the attributes, if any exist.

Testing

Added unit tests

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@majanjua-amzn majanjua-amzn requested a review from a team as a code owner January 28, 2026 20:23
@majanjua-amzn majanjua-amzn added bug Something isn't working python Pull requests that update Python code labels Jan 28, 2026
return SamplingResult(
Decision.RECORD_ONLY,
attributes,
result.attributes,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this was intentionally NOT done: 4b36553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants