Repository navigation
docs(monitoring): state what OTLP log records carry and test the logs startup gate - #326
Merged
Merged
Conversation
Coverage
Go by area
Web by area (lines)
|
M0Rf30
approved these changes
Oct 28, 2026
M0Rf30
left a comment
Collaborator
There was a problem hiding this comment.
Thanks. The privacy section is accurate against main (path without query, remote_addr, request_id, Terraform tickets in the path), the upgrade note is right, and TestSetupTelemetryBridgesLogsOnlyWhenLogsAreOn is a real behaviour test (the audit-only negative case is the useful one).
Still open from my #321 review, fine as a follow-up:
- No test that an
errorfield becomesexception.messageon the exported record (the docs state it; it relies on otelzap). E.g.Errorw(..., "error", err)and assertexception.messagein the collector body. - Document that a
.Named()logger creates a new instrumentation scope, hence a newscopevalue on the drop counter (no.Named(in code today).
Nit: the test's doc comment should start with the test name.
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.
Follow-up to #321, which was merged before these review fixes landed. Refs #192.
Resolves the four review threads of #321:
docs(upgrading):Unreleasednote thattelemetry.otlp.logsnow exports every log line on upgrade, and thatOTEL_LOGS_EXPORTER=nonekeeps the old behaviour.docs(monitoring): the startup banner and the unencrypted-secrets warning are logged before telemetry is set up and are not exported. The exported attributes (path,remote_addr,request_id,exception.message) are the line fields unfiltered; scrubbing is left to the Collector, as OpenTelemetry's sensitive-data guidance says.test(telemetry):TestSetupTelemetryBridgesLogsOnlyWhenLogsAreOnrunssetupTelemetryagainst anhttptestOTLP/HTTP endpoint. A line logged througha.logreaches/v1/logswithlogson and does not with onlyauditon. It fails if thea.log = logswap is dropped and if theotlp.Logsgate is inverted.The commits are the rebased versions of those cited in the #321 replies:
80916baaad9ea22b0c3fb514dd9ecdd39fab46d9a61a20e0make lintreports one hit,pkg/rpm/dependencies.go:72(nolintlint), which this PR does not touch.