Repository navigation
Conversation
Config Audit |
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 4 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed 🎯 Code Coverage (details) Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 5659fdf | Docs | View more details | Give us feedback! |
BenchmarksBenchmark execution time: 2026-11-25 17:16:56 Comparing candidate commit 5659fdf in PR branch Found 2 performance improvements and 0 performance regressions! Performance is the same for 413 metrics, 1 unstable metrics.
|
What does this PR do?
Checks the errors returned by
url.QueryUnescapeinpropagatorBaggage.extractTextMap(ddtrace/tracer/textmap.go).Motivation
extractTextMappreviously discarded errors fromurl.QueryUnescapeon both the key and the value. When an incomingbaggageheader had invalid percent-encoding (such as%a=valork=%a),url.QueryUnescapereturned an empty string, soextractTextMapinserted an empty-string key or value instead of rejecting the malformed item.Found by property-based testing with Ephyra.
Reviewer Checklist
ddtrace/tracer/textmap_test.gogo test ./ddtrace/tracer/...passesmake lint/errlogpasses