Skip to content

feat(honeycomb sink): add samplerate_field config option#25141

Open
fru1tworld wants to merge 3 commits intovectordotdev:masterfrom
fru1tworld:feat/honeycomb-samplerate
Open

feat(honeycomb sink): add samplerate_field config option#25141
fru1tworld wants to merge 3 commits intovectordotdev:masterfrom
fru1tworld:feat/honeycomb-samplerate

Conversation

@fru1tworld
Copy link
Copy Markdown

Summary

Add a samplerate_field configuration option to the Honeycomb sink. When set, the specified field is extracted from each event and sent as the samplerate value in the Honeycomb Batch API. The field is removed from the event data. If the field is missing or not an integer, samplerate is omitted.

Closes #18098

Vector configuration

[sinks.honeycomb]
type = "honeycomb"
api_key = "${HONEYCOMB_API_KEY}"
dataset = "my-dataset"
samplerate_field = "sample_rate"

How did you test this PR?

  • Added 6 unit tests covering: valid integer, no config, missing field, non-integer type, zero value, and mixed batch
  • cargo test -p vector --lib -- sinks::honeycomb::tests::samplerate (6/6 pass)
  • make check-clippy pass
  • make check-fmt pass

Change Type

  • Bug fix
  • New feature
  • Dependencies
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

@github-actions github-actions bot added the domain: sinks Anything related to the Vector's sinks label Apr 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@fru1tworld
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@fru1tworld
Copy link
Copy Markdown
Author

recheck

@github-actions github-actions bot added the domain: ci Anything related to Vector's CI environment label Apr 8, 2026
@fru1tworld fru1tworld marked this pull request as ready for review April 8, 2026 08:41
@fru1tworld fru1tworld requested a review from a team as a code owner April 8, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: ci Anything related to Vector's CI environment domain: sinks Anything related to the Vector's sinks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support the samplerate property in the Honeycomb sink

1 participant