← Back to Pull requests

stdoutlog: ignore nil writer options #9148

Open
pellared opened this pull request with 54 lines diff across 4 files
View on GitHub
pellared pellared commented on Oct 08, 2026 14:39 UTC
Author

stdoutlog.New(stdoutlog.WithWriter(nil)) currently succeeds but panics when exporting a record, including during SDK-managed Logger.Emit.

Ignore nil writer options, preserving the default or previously configured writer. This follows the existing nil-value handling in options such as stdoutmetric.WithEncoder and sdk/trace.WithSampler.

Fixes #9126

Diff: 54 lines (+53 / -1) across 4 files Reviewer: dmathieu Review duration: 2841m
All Vouch review confidence checks passed
Residual risk 0.09 = Change Risk (0.31) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 54 lines diff across 4 files
0.31
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.56 · 1 substantive comment(s)
0.56
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
72%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.240
Real PR Conversation Timeline
4 items
codecov[bot] codecov[bot] commented on Oct 08, 2026 14:43 UTC
Bot

Codecov Report


:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 89.2%. Comparing base (cdf142d) to head (c0d7fdb).

<details><summary>Additional details and impacted files</summary>

![Impacted file tree graph](https://app.codecov.io/gh/open-telemetry/opentelemetry-go/pull/9148?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry)

@@           Coverage Diff           @@
##            main   #9148     +/-   ##
=======================================
- Coverage   89.2%   89.2%   -0.1%     
=======================================
  Files        339     339             
  Lines      22361   22362      +1     
=======================================
- Hits       19953   19950      -3     
- Misses      2408    2412      +4     

| Files with missing lines | Coverage Δ | |
|---|---|---|
| exporters/stdout/stdoutlog/config.go | 100.0% <100.0%> (ø) | |

... and 5 files with indirect coverage changes
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • </details>

    dmathieu dmathieu approved these changes on Oct 08, 2026 15:09 UTC
    Approved Reviewer

    Approved these changes.

    MrAlias MrAlias approved these changes on Oct 09, 2026 15:59 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    pellared pellared
    Labels
    risk: low confidence: 72.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 31.4% (LOW) · Higher = larger blast radius
    31.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 72.4% · Lower = rushed or shallow review
    72.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 8.7% · Safe to merge
    8.7%