Skip to content

fix(serverless): add base_service tag for serverless#17238

Draft
zarirhamza wants to merge 2 commits intomainfrom
zarir/base_service_serverless
Draft

fix(serverless): add base_service tag for serverless#17238
zarirhamza wants to merge 2 commits intomainfrom
zarir/base_service_serverless

Conversation

@zarirhamza
Copy link
Copy Markdown
Contributor

Description

Testing

Risks

Additional Notes

@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da bot commented Mar 31, 2026

Codeowners resolved as

ddtrace/internal/settings/_config.py                                    @DataDog/python-guild @DataDog/apm-sdk-capabilities-python

When DD_SERVICE is not set on Lambda, config.service was inferred as
"runtime" from /var/runtime/ in sys.argv. This caused base_service to
show "runtime" instead of a useful value. Add a Lambda-specific
fallback using AWS_LAMBDA_FUNCTION_NAME, matching the existing pattern
for GCP and Azure functions.

Made-with: Cursor
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.

1 participant