Skip to content

Enable OTel Logging for unmodified default pipelines#2239

Open
quentinmit wants to merge 10 commits intomasterfrom
quentin-builtin-otel
Open

Enable OTel Logging for unmodified default pipelines#2239
quentinmit wants to merge 10 commits intomasterfrom
quentin-builtin-otel

Conversation

@quentinmit
Copy link
Copy Markdown
Member

Description

Use OTel Logging for default_pipeline iff the default pipeline has not been modified and the user does not specify experimental_otel_logging: false.

Related issue

b/494017653

How has this been tested?

Integration tests and new confgenerator test

Checklist:

  • Unit tests
    • Unit tests do not apply.
    • Unit tests have been added/modified and passed for this PR.
  • Integration tests
    • Integration tests do not apply.
    • Integration tests have been added/modified and passed for this PR.
  • Documentation
    • This PR introduces no user visible changes.
    • This PR introduces user visible changes and the corresponding documentation change has been made.
  • Minor version bump
    • This PR introduces no new features.
    • This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
    • This PR bumps the version.

@quentinmit quentinmit marked this pull request as ready for review March 20, 2026 22:10
}
gceMetadataAttributesProcessors, err := addGceMetadataAttributesProcessor(ctx).Processors(ctx)
if err != nil {
panic("Failed to generate static ModifyFields")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we be surfacing the error here? Just wondering why the generic panic rather than returning the error or formatting the error into the panic.

platformDefaultConfig := BuiltInConfStructs[platform.FromContext(ctx).Name()].Logging
exp_otlp := experimentsFromContext(ctx)["otlp_logging"]
exp_otel := l.Service.OTelLogging
// N.B. Temporarily gate the "auto" otel logging behind an experiment flag.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What does N.B. stand for?

Copy link
Copy Markdown
Contributor

@braydonk braydonk left a comment

Choose a reason for hiding this comment

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

LGTM but two questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants