fix(apm): Enhance Synthetic Span Service Representation by zarirhamza · Pull Request #751 · DataDog/datadog-lambda-extension

added 8 commits

July 18, 2025 01:27

joeyzhao2018

duncanista

duncanista

duncanista

duncanista

duncanista

duncanista

duncanista

duncanista

duncanista

duncanista

@duncanista duncanista changed the title Enhance Synthetic Span Service Representation fix(apm): Enhance Synthetic Span Service Representation

Aug 7, 2025

@zarirhamza

duncanpharvey pushed a commit that referenced this pull request

Mar 10, 2026
<!--- Please remember to review the [contribution
guidelines](https://github.com/DataDog/datadog-lambda-python/blob/main/CONTRIBUTING.md)
if you have not yet done so._ --->

### What does this PR do?
<!--- A brief description of the change being made with this pull
request. --->

Rollout of span naming changes to align serverless product with tracer
to create streamlined Service Representation for Serverless

Key Changes:

- Change service name to match instance name for all managed services
(aws.lambda -> lambda name, etc) (breaking)
- Opt out via `DD_TRACE_AWS_SERVICE_REPRESENTATION_ENABLED`

- Add `span.kind:server` on synthetic spans made via span-inferrer, cold
start and lambda invocation spans

- Remove `_dd.base_service` tags on synthetic spans to avoid
unintentional service override

### Motivation

<!--- What inspired you to submit this pull request? --->

Improve Service Map for Serverless. This allows for synthetic spans to
have their own service on the map which connects with the inferred spans
from the tracer side.