Skip to content
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

[Profiler] Check UDS exists when specified in agent url env var #6439

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gleocadie
Copy link
Collaborator

@gleocadie gleocadie commented Dec 16, 2024

Summary of changes

If DD_TRACE_AGENT_URL contains a UDS (Unix Domain Socket), check if it exists before using it.

Reason for change

If we do not check for UDS existence when passing through DD_TRACE_AGENT_URL env var, the profiler might end up in failing at sending profiles.

Implementation details

Check if the UDS exists. If not fallback on agent mode.

Test coverage

  • Add a test with non-existent UDS

Other details

@github-actions github-actions bot added the area:profiler Issues related to the continous-profiler label Dec 16, 2024
@datadog-ddstaging
Copy link

datadog-ddstaging bot commented Dec 16, 2024

Datadog Report

Branch report: gleocadie/fix-customer-bug-for-uds
Commit report: cdddb56
Test service: dd-trace-dotnet

✅ 0 Failed, 457109 Passed, 3314 Skipped, 21h 10m 42.59s Total Time
⌛ 1 Performance Regression

⌛ Performance Regressions vs Default Branch (1)

  • SendRequest - Benchmarks.Trace.AspNetCoreBenchmark 0s (+0s, +463%) - Details

@gleocadie gleocadie force-pushed the gleocadie/fix-customer-bug-for-uds branch from 64678d9 to 931a4c1 Compare December 16, 2024 09:45
@andrewlock
Copy link
Member

andrewlock commented Dec 16, 2024

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing the following branches/commits:

Execution-time benchmarks measure the whole time it takes to execute a program. And are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are shown in red. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6439) - mean (68ms)  : 66, 71
     .   : milestone, 68,
    master - mean (68ms)  : 66, 71
     .   : milestone, 68,

    section CallTarget+Inlining+NGEN
    This PR (6439) - mean (983ms)  : 952, 1015
     .   : milestone, 983,
    master - mean (978ms)  : 955, 1000
     .   : milestone, 978,

Loading
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6439) - mean (107ms)  : 104, 110
     .   : milestone, 107,
    master - mean (107ms)  : 105, 109
     .   : milestone, 107,

    section CallTarget+Inlining+NGEN
    This PR (6439) - mean (676ms)  : 664, 688
     .   : milestone, 676,
    master - mean (679ms)  : 662, 696
     .   : milestone, 679,

Loading
gantt
    title Execution time (ms) FakeDbCommand (.NET 6) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6439) - mean (91ms)  : 88, 93
     .   : milestone, 91,
    master - mean (91ms)  : 89, 93
     .   : milestone, 91,

    section CallTarget+Inlining+NGEN
    This PR (6439) - mean (636ms)  : 620, 652
     .   : milestone, 636,
    master - mean (637ms)  : 617, 656
     .   : milestone, 637,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6439) - mean (193ms)  : 189, 197
     .   : milestone, 193,
    master - mean (194ms)  : 189, 199
     .   : milestone, 194,

    section CallTarget+Inlining+NGEN
    This PR (6439) - mean (1,104ms)  : 1069, 1140
     .   : milestone, 1104,
    master - mean (1,099ms)  : 1063, 1134
     .   : milestone, 1099,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6439) - mean (278ms)  : 273, 284
     .   : milestone, 278,
    master - mean (277ms)  : 271, 284
     .   : milestone, 277,

    section CallTarget+Inlining+NGEN
    This PR (6439) - mean (877ms)  : 841, 913
     .   : milestone, 877,
    master - mean (873ms)  : 848, 898
     .   : milestone, 873,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6439) - mean (267ms)  : 263, 272
     .   : milestone, 267,
    master - mean (271ms)  : 265, 276
     .   : milestone, 271,

    section CallTarget+Inlining+NGEN
    This PR (6439) - mean (851ms)  : 814, 887
     .   : milestone, 851,
    master - mean (856ms)  : 826, 886
     .   : milestone, 856,

Loading

@andrewlock
Copy link
Member

andrewlock commented Dec 16, 2024

Throughput/Crank Report ⚡

Throughput results for AspNetCoreSimpleController comparing the following branches/commits:

Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red.

Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards!

gantt
    title Throughput Linux x64 (Total requests) 
    dateFormat  X
    axisFormat %s
    section Baseline
    This PR (6439) (11.315M)   : 0, 11314922
    master (11.176M)   : 0, 11175779
    benchmarks/2.9.0 (11.033M)   : 0, 11032866

    section Automatic
    This PR (6439) (7.211M)   : 0, 7211261
    master (7.188M)   : 0, 7187812
    benchmarks/2.9.0 (7.786M)   : 0, 7785853

    section Trace stats
    master (7.592M)   : 0, 7592225

    section Manual
    master (11.202M)   : 0, 11201615

    section Manual + Automatic
    This PR (6439) (6.716M)   : 0, 6715991
    master (6.624M)   : 0, 6623622

    section DD_TRACE_ENABLED=0
    master (10.184M)   : 0, 10184081

Loading
gantt
    title Throughput Linux arm64 (Total requests) 
    dateFormat  X
    axisFormat %s
    section Baseline
    This PR (6439) (9.688M)   : 0, 9688275
    master (9.299M)   : 0, 9299402
    benchmarks/2.9.0 (9.495M)   : 0, 9494821

    section Automatic
    This PR (6439) (6.472M)   : 0, 6472114
    master (6.339M)   : 0, 6338804

    section Trace stats
    master (6.490M)   : 0, 6490416

    section Manual
    master (9.438M)   : 0, 9437615

    section Manual + Automatic
    This PR (6439) (5.864M)   : 0, 5863652
    master (5.979M)   : 0, 5979389

    section DD_TRACE_ENABLED=0
    master (8.785M)   : 0, 8784619

Loading
gantt
    title Throughput Windows x64 (Total requests) 
    dateFormat  X
    axisFormat %s
    section Baseline
    This PR (6439) (9.619M)   : 0, 9618591
    master (9.992M)   : 0, 9991636
    benchmarks/2.9.0 (10.020M)   : 0, 10019592

    section Automatic
    This PR (6439) (6.402M)   : 0, 6402238
    master (6.531M)   : 0, 6530893
    benchmarks/2.9.0 (7.255M)   : 0, 7255257

    section Trace stats
    master (7.153M)   : 0, 7152931

    section Manual
    master (10.055M)   : 0, 10055115

    section Manual + Automatic
    This PR (6439) (6.038M)   : 0, 6038282
    master (5.851M)   : 0, 5850726

    section DD_TRACE_ENABLED=0
    master (9.524M)   : 0, 9524080

Loading

@andrewlock
Copy link
Member

andrewlock commented Dec 16, 2024

Benchmarks Report for tracer 🐌

Benchmarks for #6439 compared to master:

  • 2 benchmarks are faster, with geometric mean 1.143
  • 1 benchmarks are slower, with geometric mean 1.124
  • All benchmarks have the same allocations

The following thresholds were used for comparing the benchmark speeds:

  • Mann–Whitney U test with statistical test for significance of 5%
  • Only results indicating a difference greater than 10% and 0.3 ns are considered.

Allocation changes below 0.5% are ignored.

Benchmark details

Benchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master StartStopWithChild net6.0 8.03μs 44.8ns 280ns 0.0168 0.00842 0 5.62 KB
master StartStopWithChild netcoreapp3.1 9.86μs 55.9ns 379ns 0.0251 0.01 0 5.8 KB
master StartStopWithChild net472 16.4μs 56.9ns 221ns 1.05 0.327 0.106 6.21 KB
#6439 StartStopWithChild net6.0 8.11μs 40.7ns 173ns 0.0162 0.00812 0 5.62 KB
#6439 StartStopWithChild netcoreapp3.1 10.3μs 55.8ns 330ns 0.0141 0.00471 0 5.79 KB
#6439 StartStopWithChild net472 16.4μs 59.2ns 229ns 1.04 0.307 0.0889 6.22 KB
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master WriteAndFlushEnrichedTraces net6.0 478μs 321ns 1.25μs 0 0 0 2.7 KB
master WriteAndFlushEnrichedTraces netcoreapp3.1 669μs 355ns 1.38μs 0 0 0 2.7 KB
master WriteAndFlushEnrichedTraces net472 857μs 450ns 1.68μs 0.431 0 0 3.3 KB
#6439 WriteAndFlushEnrichedTraces net6.0 484μs 416ns 1.61μs 0 0 0 2.7 KB
#6439 WriteAndFlushEnrichedTraces netcoreapp3.1 648μs 382ns 1.43μs 0 0 0 2.7 KB
#6439 WriteAndFlushEnrichedTraces net472 851μs 750ns 2.9μs 0.425 0 0 3.3 KB
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master SendRequest net6.0 155μs 934ns 9.11μs 0.145 0 0 14.47 KB
master SendRequest netcoreapp3.1 169μs 992ns 9.09μs 0.173 0 0 17.27 KB
master SendRequest net472 0ns 0ns 0ns 0 0 0 0 b
#6439 SendRequest net6.0 154μs 902ns 8.98μs 0.148 0 0 14.47 KB
#6439 SendRequest netcoreapp3.1 175μs 1.39μs 13.8μs 0.231 0 0 17.27 KB
#6439 SendRequest net472 0.00488ns 0.0014ns 0.00525ns 0 0 0 0 b
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master WriteAndFlushEnrichedTraces net6.0 572μs 2.72μs 11.5μs 0.581 0 0 41.73 KB
master WriteAndFlushEnrichedTraces netcoreapp3.1 663μs 3.38μs 20.3μs 0.379 0 0 41.65 KB
master WriteAndFlushEnrichedTraces net472 833μs 2.98μs 10.8μs 8.33 2.5 0.417 53.27 KB
#6439 WriteAndFlushEnrichedTraces net6.0 591μs 3.38μs 27.3μs 0.563 0 0 41.76 KB
#6439 WriteAndFlushEnrichedTraces netcoreapp3.1 654μs 3.49μs 17.8μs 0.322 0 0 41.76 KB
#6439 WriteAndFlushEnrichedTraces net472 847μs 4.18μs 17.2μs 8.33 2.5 0.417 53.32 KB
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master ExecuteNonQuery net6.0 1.34μs 1.63ns 6.08ns 0.014 0 0 1.02 KB
master ExecuteNonQuery netcoreapp3.1 1.79μs 1.58ns 6.12ns 0.0133 0 0 1.02 KB
master ExecuteNonQuery net472 2.13μs 1.5ns 5.6ns 0.157 0.00105 0 987 B
#6439 ExecuteNonQuery net6.0 1.3μs 1.37ns 5.11ns 0.0143 0 0 1.02 KB
#6439 ExecuteNonQuery netcoreapp3.1 1.78μs 2.31ns 8.94ns 0.0133 0 0 1.02 KB
#6439 ExecuteNonQuery net472 1.95μs 1.83ns 7.08ns 0.157 0.000973 0 987 B
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master CallElasticsearch net6.0 1.33μs 0.421ns 1.52ns 0.0133 0 0 976 B
master CallElasticsearch netcoreapp3.1 1.64μs 1.13ns 4.21ns 0.0132 0 0 976 B
master CallElasticsearch net472 2.54μs 2.48ns 9.62ns 0.157 0 0 995 B
master CallElasticsearchAsync net6.0 1.3μs 3.34ns 13ns 0.0135 0 0 952 B
master CallElasticsearchAsync netcoreapp3.1 1.67μs 0.985ns 3.82ns 0.0132 0 0 1.02 KB
master CallElasticsearchAsync net472 2.66μs 2.27ns 8.5ns 0.166 0 0 1.05 KB
#6439 CallElasticsearch net6.0 1.21μs 0.407ns 1.52ns 0.0138 0 0 976 B
#6439 CallElasticsearch netcoreapp3.1 1.57μs 0.727ns 2.62ns 0.0134 0 0 976 B
#6439 CallElasticsearch net472 2.55μs 2.04ns 7.63ns 0.158 0 0 995 B
#6439 CallElasticsearchAsync net6.0 1.38μs 0.824ns 3.19ns 0.0132 0 0 952 B
#6439 CallElasticsearchAsync netcoreapp3.1 1.66μs 2.5ns 9.69ns 0.0142 0 0 1.02 KB
#6439 CallElasticsearchAsync net472 2.6μs 2.09ns 8.1ns 0.167 0 0 1.05 KB
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master ExecuteAsync net6.0 1.34μs 0.67ns 2.6ns 0.0133 0 0 952 B
master ExecuteAsync netcoreapp3.1 1.68μs 0.626ns 2.43ns 0.0131 0 0 952 B
master ExecuteAsync net472 1.81μs 0.718ns 2.78ns 0.145 0 0 915 B
#6439 ExecuteAsync net6.0 1.41μs 0.484ns 1.74ns 0.0134 0 0 952 B
#6439 ExecuteAsync netcoreapp3.1 1.65μs 1.01ns 3.79ns 0.0124 0 0 952 B
#6439 ExecuteAsync net472 1.8μs 0.525ns 1.97ns 0.145 0 0 915 B
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master SendAsync net6.0 4.46μs 1.41ns 5.46ns 0.0311 0 0 2.31 KB
master SendAsync netcoreapp3.1 5.55μs 1.45ns 5.44ns 0.039 0 0 2.85 KB
master SendAsync net472 7.37μs 2.3ns 8.92ns 0.494 0 0 3.12 KB
#6439 SendAsync net6.0 4.46μs 14.3ns 53.7ns 0.031 0 0 2.31 KB
#6439 SendAsync netcoreapp3.1 5.25μs 2.06ns 7.45ns 0.0393 0 0 2.85 KB
#6439 SendAsync net472 7.42μs 1.88ns 6.77ns 0.496 0 0 3.12 KB
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 1.54μs 0.991ns 3.71ns 0.023 0 0 1.64 KB
master EnrichedLog netcoreapp3.1 2.18μs 5.29ns 20.5ns 0.0216 0 0 1.64 KB
master EnrichedLog net472 2.71μs 1.18ns 4.57ns 0.249 0 0 1.57 KB
#6439 EnrichedLog net6.0 1.59μs 1.05ns 3.92ns 0.0232 0 0 1.64 KB
#6439 EnrichedLog netcoreapp3.1 2.15μs 2.24ns 8.67ns 0.0217 0 0 1.64 KB
#6439 EnrichedLog net472 2.84μs 1.43ns 5.54ns 0.248 0 0 1.57 KB
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 119μs 153ns 592ns 0 0 0 4.28 KB
master EnrichedLog netcoreapp3.1 121μs 140ns 540ns 0 0 0 4.28 KB
master EnrichedLog net472 150μs 228ns 884ns 0.675 0.225 0 4.46 KB
#6439 EnrichedLog net6.0 117μs 201ns 750ns 0.0587 0 0 4.28 KB
#6439 EnrichedLog netcoreapp3.1 119μs 131ns 509ns 0.06 0 0 4.28 KB
#6439 EnrichedLog net472 154μs 142ns 549ns 0.692 0.231 0 4.46 KB
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 3.02μs 0.832ns 3.11ns 0.031 0 0 2.2 KB
master EnrichedLog netcoreapp3.1 4.19μs 3.91ns 15.2ns 0.0294 0 0 2.2 KB
master EnrichedLog net472 4.87μs 1.82ns 7.03ns 0.319 0 0 2.02 KB
#6439 EnrichedLog net6.0 3.15μs 0.873ns 3.15ns 0.03 0 0 2.2 KB
#6439 EnrichedLog netcoreapp3.1 4.18μs 1.46ns 5.47ns 0.0293 0 0 2.2 KB
#6439 EnrichedLog net472 4.84μs 0.971ns 3.63ns 0.321 0 0 2.02 KB
Benchmarks.Trace.RedisBenchmark - Faster 🎉 Same allocations ✔️

Faster 🎉 in #6439

Benchmark base/diff Base Median (ns) Diff Median (ns) Modality
Benchmarks.Trace.RedisBenchmark.SendReceive‑net6.0 1.145 1,436.16 1,254.38

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master SendReceive net6.0 1.44μs 0.785ns 2.94ns 0.0159 0 0 1.14 KB
master SendReceive netcoreapp3.1 1.88μs 1.56ns 5.82ns 0.0152 0 0 1.14 KB
master SendReceive net472 2.21μs 0.867ns 3.01ns 0.184 0 0 1.16 KB
#6439 SendReceive net6.0 1.25μs 0.456ns 1.76ns 0.0161 0 0 1.14 KB
#6439 SendReceive netcoreapp3.1 1.72μs 0.77ns 2.88ns 0.0156 0 0 1.14 KB
#6439 SendReceive net472 2.21μs 0.908ns 3.52ns 0.183 0 0 1.16 KB
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 2.79μs 0.86ns 3.33ns 0.0222 0 0 1.6 KB
master EnrichedLog netcoreapp3.1 4.02μs 1.3ns 4.85ns 0.0225 0 0 1.65 KB
master EnrichedLog net472 4.55μs 3.92ns 15.2ns 0.323 0 0 2.04 KB
#6439 EnrichedLog net6.0 2.72μs 0.72ns 2.7ns 0.0217 0 0 1.6 KB
#6439 EnrichedLog netcoreapp3.1 3.96μs 2.26ns 8.75ns 0.0218 0 0 1.65 KB
#6439 EnrichedLog net472 4.43μs 2.97ns 11.1ns 0.323 0 0 2.04 KB
Benchmarks.Trace.SpanBenchmark - Slower ⚠️ Same allocations ✔️

Slower ⚠️ in #6439

Benchmark diff/base Base Median (ns) Diff Median (ns) Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0 1.124 407.23 457.77

Faster 🎉 in #6439

Benchmark base/diff Base Median (ns) Diff Median (ns) Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 1.141 556.20 487.32

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master StartFinishSpan net6.0 407ns 0.154ns 0.576ns 0.00802 0 0 576 B
master StartFinishSpan netcoreapp3.1 543ns 0.315ns 1.22ns 0.00782 0 0 576 B
master StartFinishSpan net472 702ns 0.585ns 2.27ns 0.0915 0 0 578 B
master StartFinishScope net6.0 556ns 0.232ns 0.869ns 0.00977 0 0 696 B
master StartFinishScope netcoreapp3.1 711ns 0.489ns 1.83ns 0.00939 0 0 696 B
master StartFinishScope net472 923ns 0.52ns 2.01ns 0.104 0 0 658 B
#6439 StartFinishSpan net6.0 458ns 0.3ns 1.12ns 0.00806 0 0 576 B
#6439 StartFinishSpan netcoreapp3.1 601ns 0.456ns 1.71ns 0.00775 0 0 576 B
#6439 StartFinishSpan net472 665ns 0.315ns 1.22ns 0.0916 0 0 578 B
#6439 StartFinishScope net6.0 487ns 0.388ns 1.5ns 0.00978 0 0 696 B
#6439 StartFinishScope netcoreapp3.1 653ns 0.381ns 1.48ns 0.00941 0 0 696 B
#6439 StartFinishScope net472 841ns 0.801ns 3.1ns 0.104 0 0 658 B
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master RunOnMethodBegin net6.0 630ns 0.423ns 1.58ns 0.00979 0 0 696 B
master RunOnMethodBegin netcoreapp3.1 897ns 0.46ns 1.78ns 0.00943 0 0 696 B
master RunOnMethodBegin net472 1.11μs 0.573ns 2.22ns 0.104 0 0 658 B
#6439 RunOnMethodBegin net6.0 660ns 0.436ns 1.69ns 0.00995 0 0 696 B
#6439 RunOnMethodBegin netcoreapp3.1 927ns 0.83ns 3.21ns 0.00949 0 0 696 B
#6439 RunOnMethodBegin net472 1.14μs 0.629ns 2.35ns 0.104 0 0 658 B

@gleocadie gleocadie marked this pull request as ready for review December 16, 2024 17:18
@gleocadie gleocadie requested review from a team as code owners December 16, 2024 17:18
@gleocadie gleocadie force-pushed the gleocadie/fix-customer-bug-for-uds branch from 931a4c1 to cdddb56 Compare December 16, 2024 19:48
Copy link
Member

@andrewlock andrewlock left a comment

Choose a reason for hiding this comment

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

I'm not sure about this. In the tracer we explicitly don't do this... If the customer sets the agent URL to a UDS path, I feel quite strongly that we shouldn't just ignore it, whether it exists or not.

There's a good reason for this too - sometimes the agent is slow to start (or may be restarting), and so the UDS path might temporarily not exist, but will be created by the agent shortly. In those cases, if the tracer initializes before the agent (something that does happen, both in testing and in the wild) then the profiler is permemnatly stuck with the wrong settings 😬

@gleocadie gleocadie marked this pull request as draft December 17, 2024 10:42
Copy link
Contributor

@chrisnas chrisnas left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:profiler Issues related to the continous-profiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants