Skip to content

[AGV-1595] Add is_iac support to send X-Datadog-Managed-By header - #3914

Open
dangermike-dd wants to merge 1 commit into
masterfrom
dangermike/AGV-1595/is_iac
Open

[AGV-1595] Add is_iac support to send X-Datadog-Managed-By header#3914
dangermike-dd wants to merge 1 commit into
masterfrom
dangermike/AGV-1595/is_iac

Conversation

@dangermike-dd

Copy link
Copy Markdown

Summary

  • Adds Configuration(is_iac=False) kwarg (appended last, no positional break), which when enabled sends the X-Datadog-Managed-By: iac header on all requests.
  • Lets Datadog distinguish infrastructure-as-code API traffic from other client usage.
  • Configured at client-creation time via Configuration; existing constructors are unaffected.

Test plan

  • New TestClientIsIac class in tests/client_test.py covering header-off-by-default and header-set-when-enabled behavior
  • pytest tests/ --ignore=tests/v1 --ignore=tests/v2: 67 passed, 3 skipped (pre-existing, unrelated)
  • mypy src: clean
  • ruff check / ruff format --check: clean

🤖 Generated with Claude Code

Adds Configuration(is_iac=False) which, when enabled, sends the
X-Datadog-Managed-By: iac header on all requests, so Datadog can
distinguish infrastructure-as-code traffic from other API usage.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dangermike-dd
dangermike-dd requested a review from dabickle August 24, 2026 17:56
@dangermike-dd
dangermike-dd marked this pull request as ready for review August 24, 2026 18:02
@dangermike-dd
dangermike-dd requested review from a team as code owners August 24, 2026 18:02
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.

2 participants