feat(otelcol.receiver.datadog): Expose intake proxy and trace_id_cache_size settings#5776
Merged
Merged
Conversation
…e_size settings Made-with: Cursor
Contributor
|
💻 Deploy preview deleted (feat(otelcol.receiver.datadog): Expose intake proxy and trace_id_cache_size settings). |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the otelcol.receiver.datadog component’s Alloy surface area to match more of the upstream datadogreceiver configuration, enabling /intake proxying to Datadog and allowing configuration of the trace ID mapping cache size.
Changes:
- Added
trace_id_cache_sizeargument and anintakeblock (with nestedproxy/api) tootelcol.receiver.datadogarguments and conversion logic. - Added unit tests covering
trace_id_cache_sizeand multipleintakeconfigurations (proxy/disable/absent). - Updated component reference documentation with the new argument/blocks and a
/intakeproxy example.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| internal/component/otelcol/receiver/datadog/datadog.go | Exposes new args/blocks and converts them into upstream datadogreceiver.Config. |
| internal/component/otelcol/receiver/datadog/datadog_test.go | Adds unit tests for the new configuration surface area. |
| docs/sources/reference/components/otelcol/otelcol.receiver.datadog.md | Documents the new argument and intake proxy configuration (including an example). |
Contributor
Unrelated: It's interesting to me how all the AI agents want to format PR descriptions in this way. I had added the explicit PR directions as a means to try to force it to use the template in the way we would. |
Co-authored-by: Piotr <thampiotr@users.noreply.github.com>
7fca91a to
67d846d
Compare
Co-authored-by: Piotr <thampiotr@users.noreply.github.com>
blewis12
reviewed
Mar 13, 2026
blewis12
reviewed
Mar 13, 2026
Made-with: Cursor
blewis12
approved these changes
Mar 13, 2026
Made-with: Cursor
grafana-alloybot Bot
pushed a commit
that referenced
this pull request
Mar 13, 2026
…e_size settings (#5776) ## Summary - Expose the upstream `intake` config block (with `behavior`, `proxy > api` settings) so users can proxy `/intake` requests to Datadog's API. Without this, the `/intake` endpoint always returns 405. - Expose the `trace_id_cache_size` attribute for configuring the 64-bit to 128-bit trace ID mapping cache. - Update documentation with the new blocks, arguments, and a usage example. (cherry picked from commit 0384ad4)
thampiotr
added a commit
that referenced
this pull request
Mar 13, 2026
…_size settings [backport] (#5785) ## Backport of #5776 This PR backports #5776 to release/v1.14. ### Original PR Author @thampiotr ### Description ## Summary - Expose the upstream `intake` config block (with `behavior`, `proxy > api` settings) so users can proxy `/intake` requests to Datadog's API. Without this, the `/intake` endpoint always returns 405. - Expose the `trace_id_cache_size` attribute for configuring the 64-bit to 128-bit trace ID mapping cache. - Update documentation with the new blocks, arguments, and a usage example. Fixes https://github.com/grafana/support-escalations/issues/21159 ## Test plan - [x] New unit tests for `intake` proxy config, `intake` disable config, no intake block (default), and `trace_id_cache_size` - [x] All existing tests pass - [x] `make lint` passes - [x] Verify the component works end-to-end with a Datadog Agent sending to `/intake` Made with [Cursor](https://cursor.com) --- *This backport was created automatically.* Co-authored-by: Piotr <17101802+thampiotr@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
intakeconfig block (withbehavior,proxy > apisettings) so users can proxy/intakerequests to Datadog's API. Without this, the/intakeendpoint always returns 405.trace_id_cache_sizeattribute for configuring the 64-bit to 128-bit trace ID mapping cache.Fixes https://github.com/grafana/support-escalations/issues/21159
Test plan
intakeproxy config,intakedisable config, no intake block (default), andtrace_id_cache_sizemake lintpasses/intakeMade with Cursor