[SLS-1713] Add tag for whether span should inherit service from lambda #196
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
service
arg instead of usingservice.name
for consistency with other spans (e.g.aws.lambda
)Motivation
Some inferred spans such as cold starts, etc. should inherit tags (including service) from the Lambda function.
Testing Guidelines
poetry run nose2 tests.test_tracing.TestInferredSpans
./scripts/run_tests.sh
BUILD_LAYERS=true UPDATE_SNAPSHOTS=true DD_API_KEY=<api key here> aws-vault exec sandbox-account-admin -- ./scripts/run_integration_tests.sh
Additional Notes
After this change, we have two metadata tags related to inferred spans:
is_async
: whether the inferred span invokes the Lambda function asynchronouslyinherit_lambda
: whether the inferred span should inherit tags from Lambda functionThey're prefixed with
inferred_spans.
to group them in the UI.Types of Changes
Check all that apply