Skip to content

[AGV-1596] Add is_iac support to send X-Datadog-Managed-By header - #3717

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

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

Conversation

@dangermike-dd

Copy link
Copy Markdown

Summary

  • Adds Configuration#is_iac (default false), 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, e.g. Configuration.new { |c| c.is_iac = true }; existing constructors are unaffected.

Test plan

  • New spec in spec/api_client_spec.rb covering header-off-by-default and header-set-when-enabled behavior
  • bundle exec rspec: 39 examples, 0 failures
  • rubocop: no new offenses

🤖 Generated with Claude Code

Adds Configuration#is_iac 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
@datadog-official

Copy link
Copy Markdown

Pipelines

⚠️ Warnings

🚦 1 Pipeline job failed

Ensure labels | changelog

View more details · View in GitHub Actions

Missing required label 'changelog/*'.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: eccc7a0 | Docs | View more details | Give us feedback!

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