Skip to content

internal/namingschema: add config flag to disable default integration service names#2007

Merged
rarguelloF merged 15 commits into
mainfrom
rarguelloF/add-default-client-service-names-config
Jun 14, 2023
Merged

internal/namingschema: add config flag to disable default integration service names#2007
rarguelloF merged 15 commits into
mainfrom
rarguelloF/add-default-client-service-names-config

Conversation

@rarguelloF

@rarguelloF rarguelloF commented May 26, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Adds DD_TRACE_REMOVE_INTEGRATION_SERVICE_NAMES_ENABLED env variable and WithGlobalServiceName tracer start option.

Motivation

The motivation of this flag is to be able to to use the default service names introduced by the naming schema v1 (everything defaults to DD_SERVICE) while using naming schema v0 (so the operation names remain unchanged).

AKA: This allows customers to upgrade to v1 SERVICE names while maintaining their V0 operation names. (Otherwise, V1 changes both service and operation names)

Describe how to test/QA your changes

Reviewer's Checklist

  • Changed code has unit tests for its functionality.
  • If this interacts with the agent in a new way, a system test has been added.

@rarguelloF rarguelloF changed the title internal/namingschema: add config flag to disable default client serv… internal/namingschema: add config flag to disable default client service names May 26, 2023
@pr-commenter

pr-commenter Bot commented May 26, 2023

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2023-06-14 09:57:04

Comparing candidate commit 8677744 in PR branch rarguelloF/add-default-client-service-names-config with baseline commit 087eb5a in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics.

zarirhamza
zarirhamza previously approved these changes May 26, 2023

@zarirhamza zarirhamza 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.

LGTM

amarziali
amarziali previously approved these changes May 26, 2023

@amarziali amarziali 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.

lgtm

Comment thread ddtrace/tracer/option.go Outdated
@rarguelloF
rarguelloF dismissed stale reviews from zarirhamza and amarziali via 7a8bba6 June 5, 2023 12:03
@rarguelloF rarguelloF changed the title internal/namingschema: add config flag to disable default client service names internal/namingschema: add config flag to disable default integration service names Jun 7, 2023
@rarguelloF
rarguelloF marked this pull request as ready for review June 7, 2023 10:28
@rarguelloF
rarguelloF requested a review from a team June 7, 2023 10:28
@rarguelloF
rarguelloF requested a review from a team as a code owner June 7, 2023 10:28
Comment thread internal/namingschema/namingschema.go Outdated
Comment thread ddtrace/tracer/option.go Outdated
Comment thread internal/namingschema/service_name_test.go Outdated
Comment thread internal/namingschema/service_name_test.go Outdated
ajgajg1134
ajgajg1134 previously approved these changes Jun 13, 2023
Comment thread ddtrace/tracer/option.go Outdated
Comment thread ddtrace/tracer/option_test.go Outdated
Comment thread ddtrace/tracer/option_test.go Outdated
Comment thread internal/namingschema/namingschema.go Outdated
Comment thread internal/namingschema/namingschema.go Outdated
Comment thread internal/namingschema/service_name.go Outdated
Comment thread internal/namingschema/service_name.go Outdated
Comment thread internal/namingschema/service_name_test.go Outdated
Comment thread internal/namingschema/service_name_test.go
knusbaum
knusbaum previously approved these changes Jun 13, 2023
Comment thread internal/namingschema/namingschema.go Outdated
@rarguelloF
rarguelloF dismissed stale reviews from knusbaum and ajgajg1134 via 3bbd1dc June 14, 2023 09:27
@rarguelloF
rarguelloF merged commit 7af5011 into main Jun 14, 2023
@rarguelloF
rarguelloF deleted the rarguelloF/add-default-client-service-names-config branch June 14, 2023 10:36
dianashevchenko pushed a commit that referenced this pull request Jun 14, 2023
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.

7 participants