-
Notifications
You must be signed in to change notification settings - Fork 144
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
Small updates to telemetry in preparation for V2 #4180
Conversation
Datadog ReportBranch report: ✅ |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
8dbffc0
to
0e26e5c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0e26e5c
to
e7950ca
Compare
…hem during aggregation)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
e7950ca
to
53e4821
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
{ | ||
EnvironmentHelper.EnableUnixDomainSockets(); | ||
EnableDependencies(enableDependencies); | ||
using var agent = EnvironmentHelper.GetMockAgent(useTelemetry: true); | ||
|
||
int httpPort = TcpPortProvider.GetOpenPort(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you want to assert dependencies in that test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, good catch
Add integration tests
53e4821
to
4c723fb
Compare
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:
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 (4180) - mean (3,031ms) : 2937, 3125
. : milestone, 3031,
master - mean (3,018ms) : 2929, 3106
. : milestone, 3018,
section CallTarget+Inlining+NGEN
This PR (4180) - mean (3,773ms) : 3683, 3864
. : milestone, 3773,
master - mean (3,763ms) : 3677, 3850
. : milestone, 3763,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4180) - mean (3,160ms) : 3070, 3250
. : milestone, 3160,
master - mean (3,158ms) : 3066, 3249
. : milestone, 3158,
section CallTarget+Inlining+NGEN
This PR (4180) - mean (3,610ms) : 3534, 3686
. : milestone, 3610,
master - mean (3,574ms) : 3500, 3648
. : milestone, 3574,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4180) - mean (3,137ms) : 3022, 3251
. : milestone, 3137,
master - mean (3,121ms) : 2996, 3247
. : milestone, 3121,
section CallTarget+Inlining+NGEN
This PR (4180) - mean (3,579ms) : 3513, 3646
. : milestone, 3579,
master - mean (3,563ms) : 3508, 3618
. : milestone, 3563,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4180) - mean (188ms) : 184, 191
. : milestone, 188,
master - mean (188ms) : 183, 193
. : milestone, 188,
section CallTarget+Inlining+NGEN
This PR (4180) - mean (1,033ms) : 1001, 1066
. : milestone, 1033,
master - mean (1,034ms) : 1003, 1065
. : milestone, 1034,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4180) - mean (367ms) : 361, 372
. : milestone, 367,
master - mean (370ms) : 362, 377
. : milestone, 370,
section CallTarget+Inlining+NGEN
This PR (4180) - mean (1,136ms) : 1105, 1168
. : milestone, 1136,
master - mean (1,129ms) : 1099, 1159
. : milestone, 1129,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (4180) - mean (355ms) : 351, 360
. : milestone, 355,
master - mean (356ms) : 349, 362
. : milestone, 356,
section CallTarget+Inlining+NGEN
This PR (4180) - mean (1,089ms) : 1054, 1124
. : milestone, 1089,
master - mean (1,091ms) : 1066, 1116
. : milestone, 1091,
|
Benchmarks Report 🐌Benchmarks for #4180 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️Raw results
|
Throughput/Crank Report:zap: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 (4180) (11.467M) : 0, 11466751
master (11.524M) : 0, 11523947
benchmarks/2.30.0 (11.511M) : 0, 11511353
benchmarks/2.9.0 (11.162M) : 0, 11161538
section Automatic
This PR (4180) (8.114M) : 0, 8114191
master (8.153M) : 0, 8152620
benchmarks/2.30.0 (8.079M) : 0, 8079433
benchmarks/2.9.0 (8.099M) : 0, 8099075
section Trace stats
master (8.182M) : 0, 8181770
benchmarks/2.30.0 (8.064M) : 0, 8064379
section Manual
This PR (4180) (10.257M) : 0, 10257223
master (10.366M) : 0, 10366300
benchmarks/2.30.0 (10.301M) : 0, 10300812
section Manual + Automatic
This PR (4180) (7.722M) : 0, 7722456
master (7.801M) : 0, 7800793
benchmarks/2.30.0 (7.818M) : 0, 7817667
section Version Conflict
master (7.116M) : 0, 7116047
benchmarks/2.30.0 (6.977M) : 0, 6977174
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (4180) (9.489M) : 0, 9488586
master (9.893M) : 0, 9893315
benchmarks/2.30.0 (9.717M) : 0, 9717283
benchmarks/2.9.0 (9.705M) : 0, 9704781
section Automatic
This PR (4180) (6.684M) : 0, 6684433
master (6.896M) : 0, 6895965
benchmarks/2.30.0 (6.859M) : 0, 6858691
section Trace stats
master (6.852M) : 0, 6852274
benchmarks/2.30.0 (6.632M) : 0, 6631563
section Manual
This PR (4180) (8.619M) : 0, 8618584
master (8.535M) : 0, 8535267
benchmarks/2.30.0 (8.510M) : 0, 8509554
section Manual + Automatic
This PR (4180) (6.668M) : 0, 6667741
master (6.793M) : 0, 6792590
benchmarks/2.30.0 (6.408M) : 0, 6407736
section Version Conflict
master (6.075M) : 0, 6075466
benchmarks/2.30.0 (5.944M) : 0, 5944257
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (4180) (10.103M) : 0, 10103032
master (10.298M) : 0, 10298366
benchmarks/2.30.0 (10.769M) : 0, 10768707
benchmarks/2.9.0 (9.827M) : 0, 9827121
section Automatic
This PR (4180) (7.242M) : 0, 7242328
master (7.463M) : 0, 7462611
benchmarks/2.30.0 (7.340M) : 0, 7340012
benchmarks/2.9.0 (7.246M) : 0, 7246397
section Trace stats
master (7.340M) : 0, 7340181
benchmarks/2.30.0 (7.458M) : 0, 7457655
section Manual
This PR (4180) (8.974M) : 0, 8973948
master (9.051M) : 0, 9050829
benchmarks/2.30.0 (9.281M) : 0, 9280694
section Manual + Automatic
This PR (4180) (7.060M) : 0, 7060401
master (7.216M) : 0, 7215668
benchmarks/2.30.0 (7.373M) : 0, 7372707
section Version Conflict
master (6.616M) : 0, 6616140
benchmarks/2.30.0 (6.376M) : 0, 6375876
gantt
title Throughput Linux x64 (ASM) (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (4180) (7.548M) : 0, 7548419
master (7.502M) : 0, 7502365
benchmarks/2.30.0 (7.503M) : 0, 7502766
benchmarks/2.9.0 (7.748M) : 0, 7748029
section No attack
This PR (4180) (2.429M) : 0, 2429140
master (2.415M) : 0, 2415021
benchmarks/2.30.0 (2.439M) : 0, 2438736
benchmarks/2.9.0 (3.274M) : 0, 3273699
section Attack
This PR (4180) (2.042M) : 0, 2041522
master (2.055M) : 0, 2055288
benchmarks/2.30.0 (2.036M) : 0, 2035591
benchmarks/2.9.0 (2.598M) : 0, 2597950
section Blocking
This PR (4180) (4.190M) : 0, 4190222
master (4.183M) : 0, 4183416
benchmarks/2.30.0 (4.044M) : 0, 4044248
|
Summary of changes
ConfigurationOrigin
(used later)Reason for change
These are all bits and pieces I need as part of the v2 telemetry work. Extracted to a separate PR to make it easier to review both.
Implementation details
Mostly small changes. For disabling dependency data, created an
IDependencyTelemetryCollector
and a null implementationTest coverage
Mostly covered by existing tests, added some more integration test