Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DD_SERVICE environment variable #983

Merged
merged 3 commits into from
Mar 23, 2020
Merged

Conversation

delner
Copy link
Contributor

@delner delner commented Mar 23, 2020

To make it easier to tag traces with the application version, this pull request defines DD_SERVICE which users can set, which will act as the default service for spans if a service isn't explicitly provided for that span.

Additionally it also adds conversion of OpenTelemetry's service.name tag to the service attribute on Datadog::Span.

In its current implementation, DD_SERVICE will only affect manual instrumentation that does not provide a service, as most integrations automatically have their own default service name defined. Integration behavior will be adjusted to use this default where appropriate in another pull request.

@delner delner added core Involves Datadog core libraries feature Involves a product feature labels Mar 23, 2020
@delner delner added this to the 0.34.0 milestone Mar 23, 2020
@delner delner requested review from marcotc, brettlangdon and a team March 23, 2020 18:41
@delner delner self-assigned this Mar 23, 2020
@delner
Copy link
Contributor Author

delner commented Mar 23, 2020

This pull request is based on changes from #982; it should be rebased on master once that PR is merged.

marcotc
marcotc previously approved these changes Mar 23, 2020
Copy link
Member

@marcotc marcotc left a comment

Choose a reason for hiding this comment

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

Awesome work, these new variables are really nice to help us with consistency across all our APM tracing libraries. 🚀🚀🚀

@delner delner force-pushed the feature/add_service_env_var branch from bd913e6 to 418ce9c Compare March 23, 2020 20:14
@delner delner added this to In review in Active work Mar 23, 2020
@delner delner merged commit 4c02663 into master Mar 23, 2020
Active work automation moved this from In review to Merged & awaiting release Mar 23, 2020
@delner delner deleted the feature/add_service_env_var branch March 23, 2020 20:41
@delner delner moved this from Merged & awaiting release to Released in Active work Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries feature Involves a product feature
Projects
Active work
  
Released
Development

Successfully merging this pull request may close these issues.

None yet

2 participants