-
Notifications
You must be signed in to change notification settings - Fork 319
Cleaning Up Unused and Ambiguous Configurations #10094
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
Changes from all commits
058044a
551133d
8b122a7
1751acd
3c3a0c5
bb05bd5
a2573b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,6 @@ | |
|
|
||
| import static datadog.environment.JavaVirtualMachine.isJavaVersion; | ||
| import static datadog.environment.JavaVirtualMachine.isJavaVersionAtLeast; | ||
| import static datadog.trace.api.ConfigDefaults.DEFAULT_ADD_SPAN_POINTERS; | ||
| import static datadog.trace.api.ConfigDefaults.DEFAULT_AGENT_HOST; | ||
| import static datadog.trace.api.ConfigDefaults.DEFAULT_AGENT_TIMEOUT; | ||
| import static datadog.trace.api.ConfigDefaults.DEFAULT_AGENT_WRITER_TYPE; | ||
|
|
@@ -519,7 +518,6 @@ | |
| import static datadog.trace.api.config.RumConfig.RUM_TRACK_RESOURCES; | ||
| import static datadog.trace.api.config.RumConfig.RUM_TRACK_USER_INTERACTION; | ||
| import static datadog.trace.api.config.RumConfig.RUM_VERSION; | ||
| import static datadog.trace.api.config.TraceInstrumentationConfig.ADD_SPAN_POINTERS; | ||
| import static datadog.trace.api.config.TraceInstrumentationConfig.AXIS_PROMOTE_RESOURCE_NAME; | ||
| import static datadog.trace.api.config.TraceInstrumentationConfig.CASSANDRA_KEYSPACE_STATEMENT_EXTRACTION_ENABLED; | ||
| import static datadog.trace.api.config.TraceInstrumentationConfig.CODE_ORIGIN_FOR_SPANS_ENABLED; | ||
|
|
@@ -5262,11 +5260,7 @@ public boolean isTimeInQueueEnabled( | |
| } | ||
|
|
||
| public boolean isAddSpanPointers(final String integrationName) { | ||
| return configProvider.isEnabled( | ||
| Collections.singletonList(ADD_SPAN_POINTERS), | ||
| integrationName, | ||
| "", | ||
| DEFAULT_ADD_SPAN_POINTERS); | ||
| return configProvider.isEnabled(Arrays.asList(integrationName), "", "add.span.pointers", true); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it make sense to extend
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can definitely be refactored to have a function that takes in the array to call another function take in a single name, but IMO that's out of scope for this PR and should be introduced in a follow-up. I can handle that when I have a chance in the future. |
||
| } | ||
|
|
||
| public boolean isEnabled( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.