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

[receiver/splunkhec] expose the Splunk HEC codec #21254

Closed
wants to merge 15 commits into from

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Apr 29, 2023

Description:
Move out of the splunkhec receiver the codec that translates from Splunk HEC JSON to pdata.

Link to tracking Issue:
#21152

Testing:
Test coverage is unchanged on the receiver.

Documentation:
N/A

@atoulme
Copy link
Contributor Author

atoulme commented Apr 29, 2023

@MovieStoreGuy this one is for you ;)

Copy link
Contributor

@MovieStoreGuy MovieStoreGuy left a comment

Choose a reason for hiding this comment

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

Just a naming stutter but otherwise, seems fine.

pkg/codec/splunkhec/splunk_to_logdata.go Outdated Show resolved Hide resolved
@MovieStoreGuy
Copy link
Contributor

Can I leave you to resolve the conflicts @atoulme ?

@atoulme atoulme force-pushed the move_hec_to_codec branch 2 times, most recently from fd04cae to fa14b9d Compare May 8, 2023 23:06
@atoulme atoulme requested a review from a team May 8, 2023 23:06
@atoulme atoulme requested review from mx-psi and dmitryax as code owners May 8, 2023 23:06
@github-actions github-actions bot requested a review from pmcollins May 8, 2023 23:07
@atoulme atoulme force-pushed the move_hec_to_codec branch 4 times, most recently from 1ffd424 to 81711e2 Compare May 13, 2023 07:37
@mx-psi
Copy link
Member

mx-psi commented May 16, 2023

Sounds like you need to add a replace somewhere:

	github.com/open-telemetry/opentelemetry-collector-contrib/pkg/codec/splunkhec: reading github.com/open-telemetry/opentelemetry-collector-contrib/pkg/codec/splunkhec/go.mod at revision pkg/codec/splunkhec/v0.77.0: unknown revision pkg/codec/splunkhec/v0.77.0

@atoulme atoulme force-pushed the move_hec_to_codec branch 2 times, most recently from fc18be0 to 6abca82 Compare May 17, 2023 01:04

require (
github.com/json-iterator/go v1.1.12
github.com/open-telemetry/opentelemetry-collector-contrib/internal/splunk v0.76.3
Copy link
Contributor

Choose a reason for hiding this comment

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

set these to v0.77.0

@atoulme atoulme force-pushed the move_hec_to_codec branch from 5463b12 to 5cbbc66 Compare May 27, 2023 04:49
@MovieStoreGuy
Copy link
Contributor

Looks like go.mod needs to be run again.

@dmitryax
Copy link
Member

@atoulme @MovieStoreGuy, why do we need this functionality exported in pkg? Do we want to offer to use these codecs outside of the repo?

@MovieStoreGuy
Copy link
Contributor

@atoulme @MovieStoreGuy, why do we need this functionality exported in pkg? Do we want to offer to use these codecs outside of the repo?

I don't believe anything outside of the project would consume it, the intention was to expose the functionality with the encoding extension they I've only just started.

@atoulme
Copy link
Contributor Author

atoulme commented Jun 8, 2023

OK to wait for the extension. Closing.

@atoulme atoulme closed this Jun 8, 2023
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.

5 participants