feat(tracer): add configuration for connection mode#3573
feat(tracer): add configuration for connection mode#3573
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3573 +/- ##
==========================================
- Coverage 62.04% 62.01% -0.04%
==========================================
Files 140 140
Lines 13312 13312
Branches 1762 1762
==========================================
- Hits 8260 8255 -5
- Misses 4262 4268 +6
+ Partials 790 789 -1 see 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Benchmarks [ tracer ]Benchmark execution time: 2026-01-26 17:22:50 Comparing candidate commit ec704d7 in PR branch Found 1 performance improvements and 6 performance regressions! Performance is the same for 187 metrics, 0 unstable metrics. scenario:ComposerTelemetryBench/benchTelemetryParsing
scenario:MessagePackSerializationBench/benchMessagePackSerialization
scenario:MessagePackSerializationBench/benchMessagePackSerialization-opcache
scenario:SamplingRuleMatchingBench/benchRegexMatching1
scenario:SamplingRuleMatchingBench/benchRegexMatching2
scenario:SamplingRuleMatchingBench/benchRegexMatching3
scenario:SamplingRuleMatchingBench/benchRegexMatching4
|
ce20a9e to
2eb0609
Compare
Benchmarks [ profiler ]Benchmark execution time: 2026-01-14 16:24:26 Comparing candidate commit 05ebcae in PR branch Found 0 performance improvements and 2 performance regressions! Performance is the same for 28 metrics, 6 unstable metrics. scenario:php-profiler-timeline-memory-with-profiler-and-timeline
|
06223eb to
cda73e8
Compare
391826e to
2332634
Compare
Signed-off-by: Alexandre Rulleau <alexandre.rulleau@datadoghq.com>
Signed-off-by: Alexandre Rulleau <alexandre.rulleau@datadoghq.com>
Signed-off-by: Alexandre Rulleau <alexandre.rulleau@datadoghq.com>
Signed-off-by: Alexandre Rulleau <alexandre.rulleau@datadoghq.com>
Signed-off-by: Alexandre Rulleau <alexandre.rulleau@datadoghq.com>
Signed-off-by: Alexandre Rulleau <alexandre.rulleau@datadoghq.com>
Signed-off-by: Alexandre Rulleau <alexandre.rulleau@datadoghq.com>
2332634 to
c59bfda
Compare
53a9612 to
ce80c19
Compare
Signed-off-by: Alexandre Rulleau <alexandre.rulleau@datadoghq.com>
8ffb585 to
db23a4f
Compare
db23a4f to
1dfbc13
Compare
Signed-off-by: Alexandre Rulleau <alexandre.rulleau@datadoghq.com>
1dfbc13 to
ec704d7
Compare
|
|
||
| #[no_mangle] | ||
| pub extern "C" fn ddog_set_span_service_zstr(ptr: &mut SpanBytes, str: &mut ZendString) { | ||
| pub extern "C" fn ddog_set_span_service_zstr(ptr: &mut Span<BytesData>, str: &mut ZendString) { |
|
|
||
| dd_sidecar_post_connect(&sidecar_transport, is_fork, logpath); | ||
|
|
||
| ddtrace_sidecar_reconnect(&sidecar_transport, dd_sidecar_connection_factory_thread); |
There was a problem hiding this comment.
I don't get this reconnect, I thought we just connected a couple lines above?
| ddtrace_force_new_instance_id(); | ||
|
|
||
| // Attempt to connect as a worker to parent's listener | ||
| ddtrace_sidecar = ddtrace_sidecar_connect_as_worker(true); |
There was a problem hiding this comment.
Shouldn't it just try, and fall back to creating a new master, if it didn't work?
I feel like you cheated around that with calling ddtrace_sidecar_reconnect inside ddtrace_sidecar_connect_as_worker ... but that's really weird :-D
| ddtrace_force_new_instance_id(); | ||
|
|
||
| if (ddtrace_sidecar) { | ||
| ddog_sidecar_transport_drop(ddtrace_sidecar); | ||
| ddtrace_sidecar = NULL; |
There was a problem hiding this comment.
This part should run independent of connection mode, right? ddtrace_sidecar merely holds the connection. (not the thread, which we must not drop)
Description
Reviewer checklist