Skip to content

Conversation

@jj22ee
Copy link
Contributor

@jj22ee jj22ee commented Jul 28, 2025

Issue #, if available:
In aws-distro-opentelemetry-node-autoinstrumentation/src/sampler/sampling-rule-applier.ts, truthy checks are done on ReservoirQuota/ReservoirQuotaTTL/target.FixedRate to update the Sampling Rule Applier. However for example, if target.FixedRate is 0, then it will fail the truthy check.

Description of changes:

  1. Instead of a truthy check on ReservoirQuota/ReservoirQuotaTTL/target.FixedRate, validate if their value is a number.
  2. Sync unit tests with the Sampler PR to upstream.

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

@jj22ee jj22ee requested a review from a team as a code owner July 28, 2025 18:49
@jj22ee jj22ee merged commit dc762ec into aws-observability:main Jul 30, 2025
9 checks passed
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.

3 participants