-
Notifications
You must be signed in to change notification settings - Fork 147
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
ignore entire baggage
header if malformed
#6743
Conversation
0094e96
to
4bf8896
Compare
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.
LGTM!
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 (6743) - mean (70ms) : 68, 71
. : milestone, 70,
master - mean (70ms) : 65, 74
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6743) - mean (1,010ms) : 980, 1039
. : milestone, 1010,
master - mean (1,003ms) : 977, 1029
. : milestone, 1003,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6743) - mean (103ms) : 100, 107
. : milestone, 103,
master - mean (102ms) : 100, 105
. : milestone, 102,
section CallTarget+Inlining+NGEN
This PR (6743) - mean (690ms) : 672, 707
. : milestone, 690,
master - mean (688ms) : 664, 711
. : milestone, 688,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6743) - mean (91ms) : 87, 94
. : milestone, 91,
master - mean (89ms) : 87, 91
. : milestone, 89,
section CallTarget+Inlining+NGEN
This PR (6743) - mean (651ms) : 623, 678
. : milestone, 651,
master - mean (640ms) : 626, 654
. : milestone, 640,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6743) - mean (190ms) : 187, 194
. : milestone, 190,
master - mean (191ms) : 187, 196
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6743) - mean (1,113ms) : 1080, 1145
. : milestone, 1113,
master - mean (1,107ms) : 1081, 1133
. : milestone, 1107,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6743) - mean (270ms) : 265, 274
. : milestone, 270,
master - mean (271ms) : 266, 275
. : milestone, 271,
section CallTarget+Inlining+NGEN
This PR (6743) - mean (875ms) : 842, 908
. : milestone, 875,
master - mean (877ms) : 842, 913
. : milestone, 877,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6743) - mean (262ms) : 258, 266
. : milestone, 262,
master - mean (262ms) : 259, 266
. : milestone, 262,
section CallTarget+Inlining+NGEN
This PR (6743) - mean (855ms) : 827, 884
. : milestone, 855,
master - mean (855ms) : 817, 892
. : milestone, 855,
|
Datadog ReportBranch report: ✅ 0 Failed, 248549 Passed, 2389 Skipped, 19h 58m 30.48s Total Time New Flaky Tests (1)
|
Benchmarks Report for tracer 🐌Benchmarks for #6743 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AgentWriterBenchmark - 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 - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net472 | 1.119 | 588.48 | 658.36 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 392ns | 0.434ns | 1.68ns | 0.00798 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 606ns | 1.38ns | 5.36ns | 0.0079 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 589ns | 0.892ns | 3.46ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 481ns | 0.798ns | 3.09ns | 0.00986 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 725ns | 1.74ns | 6.72ns | 0.00921 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 842ns | 1.98ns | 7.67ns | 0.104 | 0 | 0 | 658 B |
#6743 | StartFinishSpan |
net6.0 | 403ns | 0.625ns | 2.42ns | 0.00813 | 0 | 0 | 576 B |
#6743 | StartFinishSpan |
netcoreapp3.1 | 557ns | 1.04ns | 4.04ns | 0.0078 | 0 | 0 | 576 B |
#6743 | StartFinishSpan |
net472 | 657ns | 1.12ns | 4.05ns | 0.0915 | 0 | 0 | 578 B |
#6743 | StartFinishScope |
net6.0 | 525ns | 0.71ns | 2.75ns | 0.0097 | 0 | 0 | 696 B |
#6743 | StartFinishScope |
netcoreapp3.1 | 750ns | 0.995ns | 3.72ns | 0.00936 | 0 | 0 | 696 B |
#6743 | StartFinishScope |
net472 | 804ns | 1.14ns | 4.41ns | 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 | 615ns | 1.18ns | 4.58ns | 0.00981 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 922ns | 1.49ns | 5.78ns | 0.00937 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.06μs | 2.1ns | 8.12ns | 0.104 | 0 | 0 | 658 B |
#6743 | RunOnMethodBegin |
net6.0 | 577ns | 0.876ns | 3.39ns | 0.00981 | 0 | 0 | 696 B |
#6743 | RunOnMethodBegin |
netcoreapp3.1 | 918ns | 2.02ns | 7.82ns | 0.00935 | 0 | 0 | 696 B |
#6743 | RunOnMethodBegin |
net472 | 1.07μs | 1.99ns | 7.73ns | 0.104 | 0 | 0 | 658 B |
Merge activity
|
Summary of changes
When parsing a
baggage
header, if it is malformed in any way, ignore the entire header instead of trying to extract the valid key/value pairs.Reason for change
This is the defined behavior in the RFC and how we implement baggage in other tracing libraries.
Implementation details
Bail our as soon as we find any invalid format in the
baggage
header.Test coverage
Fixed existing tests and added more test cases.
Other details
n/a