Skip to content

docs: document the nooteloutput build tag in the libbeat README - #54334

Closed
Anshuman-Prakash wants to merge 1 commit into
elastic:mainfrom
Anshuman-Prakash:docs-nooteloutput-build-tag
Closed

Anshuman-Prakash wants to merge 1 commit into
elastic:mainfrom
Anshuman-Prakash:docs-nooteloutput-build-tag

Conversation

@Anshuman-Prakash

Copy link
Copy Markdown
Contributor

Adds a short section to libbeat/README.md for the nooteloutput build 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/otelconsumer is 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 -deps on that package goes from 55 to 12 otelconsumer/go.opentelemetry.io/collector packages with the tag, and otelconsumer drops to zero.
  • It does not remove OpenTelemetry outright: libbeat/beat/info.go imports collector/pdata and collector/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.
  • The stub newOTelOutputController returns (nil, nil), and its only non-test caller is pipeline.NewForReceiver (used from x-pack/libbeat/cmd/instance/beat.go). A Beat publishing through a normal output goes through newProcessOutputController and 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

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>
@Anshuman-Prakash
Anshuman-Prakash requested a review from a team as a code owner November 2, 2026 13:03
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 2, 2026
@botelastic

botelastic Bot commented Nov 2, 2026

Copy link
Copy Markdown

This pull request doesn't have a Team:<team> label.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • /test : Run the Buildkite pipeline.

@mergify

mergify Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @Anshuman-Prakash? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@bmorelli25

Copy link
Copy Markdown
Member

Please see my comment here: #54301 (comment).

@bmorelli25 bmorelli25 closed this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants