Skip to content

Add otel_attrs_to_hec_metadata attribute to otelcol.exporter.splunkhec #3932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cgetzen
Copy link

@cgetzen cgetzen commented Jul 2, 2025

PR Description

This adds the ability to set source, sourceType, index, and host dynamically from otel attrs.

The configuration and code structure matches otelcol.receiver.splunkhec's hec_metadata_to_otel_attrs

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@cgetzen cgetzen requested review from clayton-cornell and a team as code owners July 2, 2025 00:04
@CLAassistant
Copy link

CLAassistant commented Jul 2, 2025

CLA assistant check
All committers have signed the CLA.

@cgetzen cgetzen force-pushed the feat-otel_attrs_to_hec_metadata branch from 7ea8b6d to 5dc7702 Compare July 2, 2025 00:06
@ptodev ptodev self-assigned this Jul 3, 2025
@ptodev
Copy link
Contributor

ptodev commented Jul 7, 2025

Hi @cgetzen, I'm happy to merge the PR once it's rebased. Thank you!

@cgetzen cgetzen force-pushed the feat-otel_attrs_to_hec_metadata branch from 5dc7702 to b3c6d36 Compare July 8, 2025 19:20
@cgetzen
Copy link
Author

cgetzen commented Jul 8, 2025

Thanks for the review @ptodev, I have rebased.

It looks like CI does not emit a container (or binary). This would have helped test these changes in our infrastructure, pre-merge. CI as it is, I will deploy it to our infra post-merge.

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.

3 participants