Skip to content

Update to use new preferred envvar to control protocol version#6369

Open
ajgajg1134 wants to merge 4 commits intomainfrom
andrew.glaude/v1Config
Open

Update to use new preferred envvar to control protocol version#6369
ajgajg1134 wants to merge 4 commits intomainfrom
andrew.glaude/v1Config

Conversation

@ajgajg1134
Copy link
Contributor

Motivation

NodeJS already uses this envvar, let's align on the same name instead of introducing a new one.

Changes

DD_TRACE_AGENT_PROTOCOL_VERSION is now the envvar to choose a different protocol version

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • Anything but tests/ or manifests/ is modified ? I have the approval from R&P team
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added, removed or renamed?

@github-actions
Copy link
Contributor

CODEOWNERS have been resolved as:

utils/_context/_scenarios/__init__.py                                   @DataDog/system-tests-core

@ajgajg1134 ajgajg1134 marked this pull request as ready for review February 23, 2026 19:08
@ajgajg1134 ajgajg1134 requested a review from a team as a code owner February 23, 2026 19:08
@datadog-official
Copy link

datadog-official bot commented Feb 23, 2026

⚠️ Tests

Fix all issues with BitsAI or with Cursor

⚠️ Warnings

🧪 2 Tests failed

tests.test_v1_payloads.Test_V1Payloads.test_field_changes[net-http] from system_tests_suite (Datadog) (Fix with Cursor)
AssertionError: assert False
 +  where False = isinstance([{'duration': 1098521, 'error': 1, 'meta': {'_dd.appsec.event_rules.version': '1.15.1', '_dd.appsec.fp.http.endpoint':... 'hdr-0010000000-b81f317e-1-4740ae63', '_dd.appsec.fp.http.network': 'net-0-0000000000', ...}, 'meta_struct': {}, ...}], dict)
 +    where [{'duration': 1098521, 'error': 1, 'meta': {'_dd.appsec.event_rules.version': '1.15.1', '_dd.appsec.fp.http.endpoint':... 'hdr-0010000000-b81f317e-1-4740ae63', '_dd.appsec.fp.http.network': 'net-0-0000000000', ...}, 'meta_struct': {}, ...}] = <utils.dd_types._datadog_library_trace.DataDogLibraryTraceLegacy object at 0x7f4c1bb02ff0>.raw_trace

self = <tests.test_v1_payloads.Test_V1Payloads object at 0x7f4c187fef00>

    def test_field_changes(self):
        library_traces = list(interfaces.library.get_traces(self.r))
        agent_traces = list(interfaces.agent.get_traces(self.r))
        assert len(library_traces) == 1
...
tests.test_v1_payloads.Test_V1Payloads.test_field_changes[net-http-orchestrion] from system_tests_suite (Datadog) (Fix with Cursor)
AssertionError: assert False
 +  where False = isinstance([{'duration': 1144536, 'error': 1, 'meta': {'_dd.appsec.event_rules.version': '1.15.1', '_dd.appsec.fp.http.endpoint':... 'hdr-0010000000-0cf252a1-1-4740ae63', '_dd.appsec.fp.http.network': 'net-0-0000000000', ...}, 'meta_struct': {}, ...}], dict)
 +    where [{'duration': 1144536, 'error': 1, 'meta': {'_dd.appsec.event_rules.version': '1.15.1', '_dd.appsec.fp.http.endpoint':... 'hdr-0010000000-0cf252a1-1-4740ae63', '_dd.appsec.fp.http.network': 'net-0-0000000000', ...}, 'meta_struct': {}, ...}] = <utils.dd_types._datadog_library_trace.DataDogLibraryTraceLegacy object at 0x7fd71230b0e0>.raw_trace

self = <tests.test_v1_payloads.Test_V1Payloads object at 0x7fd70af9e9f0>

    def test_field_changes(self):
        library_traces = list(interfaces.library.get_traces(self.r))
        agent_traces = list(interfaces.agent.get_traces(self.r))
        assert len(library_traces) == 1
...

ℹ️ Info

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1002385 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants