refactor(amqp, heroku_logs sources): use const field names #27228
<!-- codex-pull-request-review-summary -->
<!-- codex-review-state:v1 {"code_review":{"commit_sha":"67fe6fa6595b7186ce66d3a98787a00ae3a5fa0d","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} -->
<details>
<summary><strong>Codex Review Summary</strong>: ✅ Completed</summary>
This comment shows the latest Codex review activity on this pull request.
| Review | Status | Commit | Review trigger |
| --- | --- | --- | --- |
| 📝 Code Review | ✅ Completed <relative-time datetime="2026-11-17T13:26:27.717735Z">2026-11-17T13:26:27.717735Z</relative-time> | 67fe6fa | PR opened |
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
</details>
</details>
<details>
<summary>More details</summary>
The constants preserve the existing field-name values and their behavior in path macros, keeping AMQP and Heroku source defaults, emitted metadata, and schema declarations aligned.
</details>
Was this helpful? React 👍 or 👎
<sub>Open Bits AI session</sub>
<sub>🤖 Bits Code Review · Commit 67fe6fa</sub>
<!-- autotest-meta model=gpt-6.1-sol engine=codex reasoning_effort=high verdict=PASS ddrs_bucket=unknown session_id=5e3c1f8e-b9b0-45ee-972d-dbfd5aa58975 -->
<!-- datadog-code-review reviewer-id=bad90057-5c12-4101-ad47-d91c9dff0f90 -->
<!-- datadog-autotest:v1:prod -->
<!-- datadog-autotest-delivery:v1:prod:337eab25a8303fbcb07f63bb5443c75da1963cc978cf1abee0f9da169275c086:bundle -->
Approved these changes.
pront
itang06
Summary
Replaces raw source-owned field-name strings in the
amqpandheroku_logssources with constants, following the pattern used in #27060:amqp:TIMESTAMP,ROUTING,EXCHANGE, andOFFSETare reused across default paths, schema declarations, event insertion, and relevant tests.heroku_logs:TIMESTAMP,HOST,APP_NAME,PROC_ID, andQUERY_PARAMETERSare reused across schema declarations, parsed legacy paths, event insertion, and relevant tests.Field names and behavior remain unchanged. Vector-wide metadata names, configuration labels, and test data remain literal.
References
Related: #17225
Vector configuration
No configuration changes.
How did you test this PR?
make fmtFEATURES="sources-amqp sources-heroku_logs" make check-clippymake test FEATURES="sources-amqp" SCOPE="sources::amqp": 3 passedmake test FEATURES="sources-heroku_logs" SCOPE="sources::heroku_logs": 11 passedDoes this PR include user facing changes?
For a new deprecation announcement, follow the deprecation policy and add a
deprecation.d/notice instead.no-changeloglabel to this PR.Contributor Guidelines
@vectordotdev/vectorto reach out to us regarding this PR.- Feel free to push as many commits as you want. They will be squashed into one before merging.
- For example, you can run
git merge origin masterandgit push.