Skip to content

Conversation

wangzlei
Copy link
Contributor

@wangzlei wangzlei commented Sep 19, 2024

Issue #, if available:

Previously we use aws.trace.flag.unsampled mark the span is unsampled. The change updates this attribute to be aws.trace.flag.sampled.

Description of changes:

span is unsampled:

If span has no span attribute aws.trace.flag.sampled , value type is boolean and value is false.

span is sampled:

If span has no span attribute aws.trace.flag.sampled
or span has span attribute aws.trace.flag.sampled , value type is boolean and value is true,
or span has span attribute aws.trace.flag.sampled , value type is NOT boolean

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

@wangzlei wangzlei requested a review from a team as a code owner September 19, 2024 01:20
@mxiamxia mxiamxia merged commit b1fcdb3 into aws-observability:main Sep 19, 2024
11 checks passed
mxiamxia added a commit to aws-observability/aws-otel-js-instrumentation that referenced this pull request Sep 21, 2024
*Description of changes:*
1. Replicate Python SDK changes
aws-observability/aws-otel-python-instrumentation#260
to rename Unsampled span attribute flag name.
2. Optimize Lambda Layer Deps package config to reduce layer size.
3. Fixed the forceFlush issue which is to set TraceProvider for all
instrumentations at the end of init configuration


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
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