Skip to content

Conversation

@dmehala
Copy link
Collaborator

@dmehala dmehala commented Sep 10, 2025

Description

This addresses a regression introduced in #178, where traceparent headers containing unsupported characters were not properly rejected and were incorrectly treated as valid.

APMAPI-1599

This addresses a regression introduced in #178, where traceparent
headers containing unsupported characters were not properly rejected and
were incorrectly treated as valid.

[APMAPI-1599]
@dmehala dmehala force-pushed the dmehala/fix-validate-traceparent branch from caa04da to 32466a8 Compare September 10, 2025 09:37
@pr-commenter
Copy link

pr-commenter bot commented Sep 10, 2025

Benchmarks

Benchmark execution time: 2025-09-22 08:45:07

Comparing candidate commit 071b25b in PR branch dmehala/fix-validate-traceparent with baseline commit cf98cc2 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

@dmehala dmehala marked this pull request as ready for review September 10, 2025 09:38
@dmehala dmehala requested a review from a team as a code owner September 10, 2025 09:38
@dmehala dmehala requested review from Anilm3 and zacharycmontoya and removed request for a team September 10, 2025 09:38

{
__LINE__,
"malformed traceparent 1/x",
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like this test would fit better in a previous test case, where you test error cases and assert that the expected_error_tag_value is malformed_traceparent. However this input would result in invalid_version

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, thank you @zacharycmontoya . Addressed in 071b25b

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.54%. Comparing base (4d64c46) to head (071b25b).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #241      +/-   ##
==========================================
+ Coverage   87.45%   87.54%   +0.09%     
==========================================
  Files          83       83              
  Lines        5460     5468       +8     
==========================================
+ Hits         4775     4787      +12     
+ Misses        685      681       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@datadog-datadog-prod-us1
Copy link

🎯 Code Coverage
Patch Coverage: 100.00%
Total Coverage: 87.55%

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 071b25b | Docs | Was this helpful? Give us feedback!

@dmehala dmehala merged commit 852faaa into main Sep 22, 2025
24 checks passed
@dmehala dmehala deleted the dmehala/fix-validate-traceparent branch September 22, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants