Skip to content
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

[Tracing] Add tests for proposed new DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT configuration (APMAPI-1007) #3602

Draft
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

zacharycmontoya
Copy link
Contributor

@zacharycmontoya zacharycmontoya commented Dec 2, 2024

Motivation

Changes

I intend to only keep the weblog endpoints as they perform the automatic trace context propagation for supported web frameworks, instead of the parametric test application endpoints which are extremely manual.

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes (if something not related to your task is failing, you can ignore it)
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner. We're working on refining the codeowners file quickly.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • If PR title starts with [<language>], double-check that only <language> is impacted by the change
  • No system-tests internal is modified. Otherwise, I have the approval from R&P team
  • CI is green, or failing jobs are not related to this change (and you are 100% sure about this statement)
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added (or removed)?

@zacharycmontoya zacharycmontoya force-pushed the zach.montoya/poc/propagation-behavior branch 2 times, most recently from 59d844f to 8fb956a Compare December 9, 2024 16:05
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is only being updated because it also uses the tracing_config_nondefault and tracing_config_nondefault_2 scenarios, which are being co-opted by the new tests. As a result, the implementation details of the tests have been updated while keeping the same high-level goal. cc @mhlidd

…ndpoint, to return the request and response headers as a dict
… for baggage propagation.

- Add another test case with DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT=restart and DD_TRACE_PROPAGATION_EXTRACT_FIRST=true, where there is always only one span link, which was the valid incoming trace context that got moved to a span link
…dog,tracecontext,b3multi", and update tests/test_distributed.py appropriately
…, W3C Trace Context, B3Multi) and run two test cases per config: Single trace context and multiple trace contexts. This demonstrates how span links will be created in tandem with the ExtractBehavior configurations
…inks represent "terminated contexts" from the incoming context to the final context. Also, make some small assertion fixes
@zacharycmontoya zacharycmontoya force-pushed the zach.montoya/poc/propagation-behavior branch from de515e6 to a225dd9 Compare January 9, 2025 17:01
@zacharycmontoya zacharycmontoya changed the title Trace Context Propagation: Add tests for proposed new DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT configuration Trace Context Propagation: Add tests for proposed new DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT configuration [APMAPI-1007] Jan 16, 2025
@zacharycmontoya zacharycmontoya changed the title Trace Context Propagation: Add tests for proposed new DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT configuration [APMAPI-1007] [Tracing] Add tests for proposed new DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT configuration [APMAPI-1007] Jan 16, 2025
@zacharycmontoya zacharycmontoya changed the title [Tracing] Add tests for proposed new DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT configuration [APMAPI-1007] [Tracing] Add tests for proposed new DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT configuration (APMAPI-1007) Jan 16, 2025
…Conflicting_Contexts_Datadog_Precedence test class
- tests/test_distributed.py::Test_Span_Links_Flags_From_Conflicting_Contexts
- tests/test_distributed.py::Test_Span_Links_Omit_Tracestate_From_Conflicting_Contexts
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.

3 participants