feat(tracing): allow tracing to be disabled remotely (via Datadog UI)#8080
Merged
emmettbutler merged 34 commits intomainfrom Feb 1, 2024
Merged
feat(tracing): allow tracing to be disabled remotely (via Datadog UI)#8080emmettbutler merged 34 commits intomainfrom
emmettbutler merged 34 commits intomainfrom
Conversation
BenchmarksBenchmark execution time: 2024-02-01 22:50:10 Comparing candidate commit a6b3112 in PR branch Found 12 performance improvements and 16 performance regressions! Performance is the same for 167 metrics, 9 unstable metrics. scenario:coreapiscenario-context_with_data_listeners
scenario:coreapiscenario-context_with_data_no_listeners
scenario:coreapiscenario-context_with_data_only_all_listeners
scenario:coreapiscenario-core_dispatch_listeners_and_all_listeners
scenario:coreapiscenario-core_dispatch_with_results_listeners
scenario:coreapiscenario-set_item
scenario:flasksimple-appsec-telemetry
scenario:httppropagationextract-b3_headers
scenario:httppropagationextract-b3_single_headers
scenario:httppropagationextract-datadog_tracecontext_tracestate_not_propagated_on_trace_id_no_match
scenario:httppropagationextract-full_t_id_datadog_headers
scenario:httppropagationextract-invalid_trace_id_header
scenario:httppropagationextract-wsgi_invalid_trace_id_header
scenario:httppropagationextract-wsgi_valid_headers_basic
scenario:httppropagationinject-ids_only
scenario:httppropagationinject-with_sampling_priority
scenario:httppropagationinject-with_tags
scenario:httppropagationinject-with_tags_invalid
scenario:otelspan-start-finish
scenario:otelspan-start-finish-telemetry
scenario:sethttpmeta-collectipvariant_exists
scenario:sethttpmeta-obfuscation-regular-case-explicit-query
scenario:sethttpmeta-obfuscation-regular-case-implicit-query
scenario:sethttpmeta-obfuscation-worst-case-explicit-query
scenario:sethttpmeta-useragentvariant_not_exists_2
scenario:span-start-finish
scenario:span-start-finish-telemetry
scenario:span-start-finish-traceid128
|
store enabled flag as a boolean
…o keep track of which is which and it is easier to think about when you can ignore the difference
9 tasks
Collaborator
Author
|
@Kyle-Verhoog this is ready to go as far as I can tell. let me know if you think it needs changes. |
Member
Kyle-Verhoog
left a comment
There was a problem hiding this comment.
A couple thoughts. Depending on your answers I think this is good to go.
18 tasks
majorgreys
approved these changes
Feb 1, 2024
… of the relevant tests passing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request makes
Tracer.enabledconfigurable via remote. Semantically this configuration is a one-way switch: it can be remotely set to False, but once it's False it cannot be remotely set to True. When False, it can be set to True via code or environment variable.There isn't much risk in this change because it's a no-op until the UI starts sending the relevant remote configuration flag.
The remote config backend change supporting this feature is dd-go PR 118200.
The system-tests change validating this new functionality is DataDog/system-tests#2039.
Checklist
changelog/no-changelog.Reviewer Checklist
@DataDog/security-design-and-guidance.APMON-578