Repository navigation
docs: document the nooteloutput build tag in the libbeat README - #54334
Closed
Anshuman-Prakash wants to merge 1 commit into
Closed
Anshuman-Prakash wants to merge 1 commit into
Anshuman-Prakash wants to merge 1 commit into
Conversation
The tag has been available since elastic#50853 but was only discoverable by reading the build constraints. Relates to elastic#51126 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
This pull request doesn't have a |
Contributor
🤖 GitHub commentsJust comment with:
|
Contributor
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Member
|
Please see my comment here: #54301 (comment). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a short section to
libbeat/README.mdfor thenooteloutputbuild tag from #50853, which until now was only discoverable by reading the build constraints. The README is the page the commit's audience — downstream libbeat consumers — lands on.Relates to #49782's sibling, #51126.
What I verified rather than assumed:
libbeat/otel/otelconsumeris imported by exactly one file,output_otel.go, which is//go:build !nooteloutput. So the tag really does prune it.go build -tags nooteloutput ./libbeat/publisher/pipeline/compiles.go list -depson that package goes from 55 to 12otelconsumer/go.opentelemetry.io/collectorpackages with the tag, andotelconsumerdrops to zero.libbeat/beat/info.goimportscollector/pdataandcollector/consumer, so those 12 stay either way. The section says so instead of promising a clean break — that residual coupling is also why the original commit calls the tag a temporary workaround.newOTelOutputControllerreturns(nil, nil), and its only non-test caller ispipeline.NewForReceiver(used fromx-pack/libbeat/cmd/instance/beat.go). A Beat publishing through a normal output goes throughnewProcessOutputControllerand is unaffected, so the section says the tag is safe for the usual case and calls out the receiver path as the one thing not to combine it with.Docs-only, so no changelog fragment applies — happy for you to add
skip-changelog.🤖 Generated with Claude Code