Ensure the msgpack contents include only valid utf8#2698
Conversation
Signed-off-by: Bob Weinand <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2698 +/- ##
============================================
- Coverage 77.96% 77.96% -0.01%
Complexity 2212 2212
============================================
Files 227 227
Lines 26551 26559 +8
Branches 988 988
============================================
+ Hits 20701 20707 +6
- Misses 5324 5326 +2
Partials 526 526
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
BenchmarksBenchmark execution time: 2024-06-08 16:21:37 Comparing candidate commit f91f0db in PR branch Found 3 performance improvements and 5 performance regressions! Performance is the same for 170 metrics, 0 unstable metrics. scenario:MessagePackSerializationBench/benchMessagePackSerialization
scenario:MessagePackSerializationBench/benchMessagePackSerialization-opcache
scenario:PDOBench/benchPDOBaseline-opcache
scenario:PDOBench/benchPDOOverhead
scenario:PDOBench/benchPDOOverhead-opcache
scenario:SamplingRuleMatchingBench/benchRegexMatching1
scenario:SamplingRuleMatchingBench/benchRegexMatching2
scenario:SamplingRuleMatchingBench/benchRegexMatching3
|
pierotibou
left a comment
There was a problem hiding this comment.
I don't get why this would be an issue when going through the agent (as you said it strips utf8).
And if this is for agentless, I don't think we should change the C code. At least short term, we envision the exporter to take care of all that kind of things, so that the tracers keep a consistent implementation
Co-authored-by: Pierre Bonet <[email protected]>
…disabled Signed-off-by: Bob Weinand <[email protected]>
pierotibou
left a comment
There was a problem hiding this comment.
Cool thanks for the offline explanations and for adding the change behind the sidecar flag.
* Ensure the msgpack contents include only valid utf8 Signed-off-by: Bob Weinand <[email protected]> * Update ext/serializer.c Co-authored-by: Pierre Bonet <[email protected]> * Avoid minor perf impact on msgpack serialization with sidecar sender disabled Signed-off-by: Bob Weinand <[email protected]> --------- Signed-off-by: Bob Weinand <[email protected]> Co-authored-by: Pierre Bonet <[email protected]>
Ensure no utf8 is contained in msgpack strings.
The agent would properly sanitize this away, but the sidecar is not. All traces containing a single invalid utf-8 sequence were dropped.