feat: ensure tracecontext headers take precedence over datadog (AIT-10281) by zacharycmontoya · Pull Request #142 · DataDog/dd-trace-cpp

added 2 commits

July 19, 2024 14:10
…n")->SECTION("W3C Phase 3 support - Preferring tracecontext") with the following test inputs and outputs:

- INPUT: traceparent
- INPUT: tracestate
- INPUT: x-datadog-trace-id
- INPUT: x-datadog-parent-id
- INPUT: x-datadog-tags
- OUTPUT: expected_parent_id
- OUTPUT: expected_datadog_w3c_parent_id

This tests the system-test case test_tracestate_w3c_p_extract_datadog_w3c for W3C Phase 3.

dmehala

dmehala

@zacharycmontoya

…d the first_style to be used as the main context. This improves the lookup and logic of the merge at the cost of moving up the error cases up a level to Tracer::extract_span

@zacharycmontoya

zacharycmontoya

dmehala

dmehala

dmehala

Fixes field accesses from pointers

Co-authored-by: Damien Mehala <damien.mehala@datadoghq.com>

@zacharycmontoya

khanayan123