Skip to content
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

[exporter/splunkhecexporter] Add OtelAttrsToHec struct and related config fields #35476

Merged
merged 7 commits into from
Dec 10, 2024

Conversation

bderrly
Copy link
Contributor

@bderrly bderrly commented Sep 27, 2024

Description: Adding a new config fields otel_attrs_to_hec_metadata/* to replace the hec_metadata_to_otel_attrs/* config fields.

Link to tracking Issue: fixes #35092

Testing: No new tests added, modified existing tests.

Documentation: Adding field-level description to exporter README.md.

@bderrly bderrly requested review from dmitryax, a team and atoulme as code owners September 27, 2024 21:38
Copy link

linux-foundation-easycla bot commented Sep 27, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

- `hec_metadata_to_otel_attrs/source` (default = 'com.splunk.source'): Specifies the mapping of a specific unified model attribute value to the standard source field of a HEC event.
**Deprecated** (v0.109.0): prefer `otel_attrs_to_hec_metadata/source`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**Deprecated** (v0.109.0): prefer `otel_attrs_to_hec_metadata/source`.
**Deprecated** (v0.111.0): prefer `otel_attrs_to_hec_metadata/source`.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@bderrly bderrly requested a review from atoulme October 2, 2024 23:26
@bderrly
Copy link
Contributor Author

bderrly commented Oct 8, 2024

@atoulme, any further issues or is this ready to merge?

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 23, 2024
@bderrly
Copy link
Contributor Author

bderrly commented Oct 26, 2024

I updated the deprecation target versions. Do I need approval from @dmitryax or can @atoulme merge this?

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 10, 2024
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Nov 24, 2024
@bderrly
Copy link
Contributor Author

bderrly commented Nov 25, 2024

I would still like to see this PR merge. Is there some step that I am overlooking on how to get this to be merged?

@bderrly
Copy link
Contributor Author

bderrly commented Nov 27, 2024

@atoulme, is there some way to revive this PR or do I need to create another one?

@dmitryax dmitryax reopened this Nov 27, 2024
@github-actions github-actions bot removed the Stale label Nov 28, 2024
@atoulme
Copy link
Contributor

atoulme commented Dec 7, 2024

Changes still look good to me. You need to update the README for the deprecation notice.

@bderrly bderrly requested a review from atoulme December 10, 2024 20:54
This new struct is used when converting an OTel log message into a Splunk
message. Any fields that are modified in the HecToOtelAttrs struct will
be used in this new struct unless the corresponding field has already
been modified there.
@dmitryax dmitryax merged commit 349ebd1 into open-telemetry:main Dec 10, 2024
160 checks passed
@github-actions github-actions bot added this to the next release milestone Dec 10, 2024
@bderrly bderrly deleted the iss-35092 branch December 14, 2024 00:11
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…config fields (open-telemetry#35476)

**Description:** Adding a new config fields
`otel_attrs_to_hec_metadata/*` to replace the
`hec_metadata_to_otel_attrs/*` config fields.

**Link to tracking Issue:** fixes open-telemetry#35092

**Testing:** No new tests added, modified existing tests.

**Documentation:** Adding field-level description to exporter README.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hec_metadata_to_otel_attrs option is confusing on exporter/splunkhec
4 participants