Skip to content

Add initial DynamicConfig API and use it to maintain service mappings#5103

Merged
mcculls merged 1 commit intomasterfrom
mcculls/dynamic-config-api
Apr 26, 2023
Merged

Add initial DynamicConfig API and use it to maintain service mappings#5103
mcculls merged 1 commit intomasterfrom
mcculls/dynamic-config-api

Conversation

@mcculls
Copy link
Copy Markdown
Contributor

@mcculls mcculls commented Apr 24, 2023

What Does This Do

Initial API for dynamic configuration which supports capturing a snapshot for the duration of a trace.
More elements will be added to TraceConfig as selected static config elements are made dynamic.

@mcculls mcculls added tag: do not merge Do not merge changes comp: core Tracer core comp: api Tracer public API labels Apr 24, 2023
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Apr 24, 2023

Benchmarks

Parameters

Baseline Candidate
commit 1.13.0-SNAPSHOT~a40147a890 1.13.0-SNAPSHOT~e38e5f2915
config baseline candidate
See matching parameters
Baseline Candidate
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 22 cases.

See unchanged results
scenario Δ mean execution_time
scenario:Startup-base-Agent unsure
[+0.012s; +0.125s] or [+0.134%; +1.374%]
scenario:Startup-base-Agent.start same
scenario:Startup-base-BytebuddyAgent same
scenario:Startup-base-GlobalTracer same
scenario:Startup-base-AppSec same
scenario:Startup-base-Remote Config same
scenario:Startup-base-Telemetry same
scenario:Startup-iast-Agent same
scenario:Startup-iast-Agent.start same
scenario:Startup-iast-BytebuddyAgent same
scenario:Startup-iast-GlobalTracer same
scenario:Startup-iast-AppSec same
scenario:Startup-iast-IAST same
scenario:Startup-iast-Remote Config same
scenario:Startup-iast-Telemetry same
scenario:Startup-waf-Agent same
scenario:Startup-waf-Agent.start same
scenario:Startup-waf-BytebuddyAgent same
scenario:Startup-waf-GlobalTracer same
scenario:Startup-waf-AppSec same
scenario:Startup-waf-Remote Config same
scenario:Startup-waf-Telemetry same

@mcculls mcculls force-pushed the mcculls/dynamic-config-api branch 4 times, most recently from 001f01f to 3a7058f Compare April 24, 2023 20:57
@mcculls mcculls force-pushed the mcculls/dynamic-config-api branch from 3a7058f to e38e5f2 Compare April 24, 2023 21:12
@mcculls mcculls changed the title [WIP] Add initial DynamicConfig API and use it to maintain service mappings Add initial DynamicConfig API and use it to maintain service mappings Apr 24, 2023
@mcculls mcculls removed the tag: do not merge Do not merge changes label Apr 24, 2023
@mcculls mcculls marked this pull request as ready for review April 24, 2023 21:16
@mcculls mcculls requested a review from a team as a code owner April 24, 2023 21:16
Copy link
Copy Markdown
Contributor

@randomanderson randomanderson left a comment

Choose a reason for hiding this comment

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

👍

Comment thread internal-api/src/main/java/datadog/trace/api/TraceConfig.java
@mcculls mcculls merged commit 3b70b3d into master Apr 26, 2023
@mcculls mcculls deleted the mcculls/dynamic-config-api branch April 26, 2023 09:03
@github-actions github-actions Bot added this to the 1.13.0 milestone Apr 26, 2023
@PerfectSlayer
Copy link
Copy Markdown
Contributor

It starts having more and more code duplicate. I wonder if there could be a way to have a module to share some helpers for 3.x version for example (if it ever makes sense)

@mcculls
Copy link
Copy Markdown
Contributor Author

mcculls commented Apr 26, 2023

It starts having more and more code duplicate

what duplication - was this comment meant for a different PR?

@PerfectSlayer
Copy link
Copy Markdown
Contributor

what duplication - was this comment meant for a different PR?

It was... Probably an issue with VS code pull request plugin 🤷 Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: api Tracer public API comp: core Tracer core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants