Skip to content

chore: fix some missing service name tags#223

Merged
scottgerring merged 1 commit into
mainfrom
chore/naming-tags-2
Mar 4, 2026
Merged

chore: fix some missing service name tags#223
scottgerring merged 1 commit into
mainfrom
chore/naming-tags-2

Conversation

@scottgerring

@scottgerring scottgerring commented Mar 4, 2026

Copy link
Copy Markdown
Member

Add DD_SERVICE environment variable to Lambda function constructs (user-management, print-service) so the Datadog tracer uses the correct service name instead of falling back to the AWS function name or .NET assembly name

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ensures Datadog tracing for the Lambda-based services uses the intended logical service name by explicitly setting DD_SERVICE from the shared service name, rather than relying on Datadog’s fallback naming (Lambda function name / .NET assembly name).

Changes:

  • Add DD_SERVICE env var to the user-management instrumented Lambda construct.
  • Add DD_SERVICE env var to the print-service instrumented Lambda construct.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
user-management/infra/aws/lib/constructs/instrumented-function.ts Sets DD_SERVICE to sharedProps.serviceName for instrumented Lambdas.
print-service/infra/aws/lib/constructs/instrumented-function.ts Sets DD_SERVICE to sharedProps.serviceName for instrumented Lambdas.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@scottgerring scottgerring marked this pull request as ready for review March 4, 2026 10:54
@scottgerring scottgerring merged commit fd45d18 into main Mar 4, 2026
28 checks passed
@scottgerring scottgerring deleted the chore/naming-tags-2 branch March 4, 2026 12:06
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