Skip to content

Query string obfuscation tests for http client and server spans#3783

Merged
mtoffl01 merged 13 commits into
mainfrom
mtoff/obfuscate-client-querystr
Jan 17, 2025
Merged

Query string obfuscation tests for http client and server spans#3783
mtoffl01 merged 13 commits into
mainfrom
mtoff/obfuscate-client-querystr

Conversation

@mtoffl01

@mtoffl01 mtoffl01 commented Jan 8, 2025

Copy link
Copy Markdown
Contributor

Motivation

Test that DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP applies to both http client and http server spans.

Changes

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)?

@mtoffl01
mtoffl01 requested review from a team, khanayan123, link04 and mabdinur and removed request for a team January 14, 2025 21:03
@mtoffl01
mtoffl01 marked this pull request as ready for review January 14, 2025 21:04
@mtoffl01
mtoffl01 requested review from a team as code owners January 14, 2025 21:04
@mtoffl01
mtoffl01 requested review from Anilm3, Mariovido, PerfectSlayer and ValentinZakharov and removed request for a team January 14, 2025 21:04
self.r = weblog.get("/make_distant_call", params={"url": "http://weblog:7777/?ssn=123-45-6789"})

@missing_feature(context.library == "nodejs", reason="Node only obfuscates queries on the server side")
@missing_feature(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why test_query_string_obfuscation_empty_client is marked as irrrelevant and test_query_string_obfuscation_configured_client is marked as missing_feature?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

should be good now

Comment thread tests/test_config_consistency.py Outdated
)


@scenarios.default

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if there is not a @scenarios decorator, it's set as default. No marker needed

@cbeauchesne
cbeauchesne dismissed a stale review January 17, 2025 14:33

typo

@cbeauchesne cbeauchesne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Conflict to solve

@cbeauchesne cbeauchesne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

All good, sorry for the previous review, github showed me a strange commit ...

@mtoffl01
mtoffl01 merged commit 8cd8457 into main Jan 17, 2025
@mtoffl01
mtoffl01 deleted the mtoff/obfuscate-client-querystr branch January 17, 2025 15:07
bm1549 added a commit that referenced this pull request Apr 14, 2026
PHP dd-trace-php PR #3783 changed telemetry config names from INI-derived
dot notation (e.g. trace.debug) to canonical env var names (e.g.
DD_TRACE_DEBUG). Update the telemetry_name_mapping for PHP accordingly and
bump the manifest version to 1.19.0.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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