← Back to Pull requests

semconv: adopt v1.45.0 #10343

Closed
unknown closed this pull request without merging on Nov 24, 2026 13:08 UTC
View on GitHub
unknown unknown commented on Nov 19, 2026 10:28 UTC
Author

Fixes #10257.

Adopt Semantic Conventions v1.45.0 across active instrumentation, resource detectors, shared templates, tests, examples, and the import policy. Pin OTel Go modules to 34915e1, which includes the generated conventions and aligns SDK/resource schema URLs.

  • Emit rpc.status_code on gRPC spans and metrics, and explicitly select all 41 recommended gRPC duration histogram boundaries, including zero. SDK Views can override the advice. No RPC metadata attributes are currently captured, so the header/trailer renames need no runtime changes.

  • Report host memory as used and available; the collector already measures available memory, including reclaimable memory. Runtime helpers already preserve fractional CPU measurements and the appropriate observable/synchronous instrument types.

  • Emit messaging.system.name for AWS messaging. SQS migrates from aws_sqs to aws.sqs. SNS uses the already-standard aws.sns, correcting contrib's existing custom aws_sns value; the SNS standard value did not change in v1.45.0.

  • Emit faas.invocation.id for Lambda invocations.

  • Preserve MongoDB's v1.21.0 attributes for database/dup compatibility. Other active consumers and generated helpers use v1.45.0.
  • Regression tests cover the emitted keys and values, gRPC schema and exact bucket boundaries, and host memory partitioning. Existing resource composition tests cover interoperability with the pinned SDK.

    Generation, module tidying, toolchain/license checks, full lint with depguard, the full build, and the complete race suite (including detector omit-tag variants) pass.

    Focused gRPC handler benchmarks (six samples) retain the same bytes/op and 19 allocations/op. Timings are affected by load on the shared machine; no performance improvement is claimed.

    <details>
    <summary>gRPC benchstat comparison</summary>

    goos: linux
    goarch: amd64
    pkg: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
    cpu: AMD EPYC 7571
                                           │    before    │               after                │
                                           │    sec/op    │   sec/op     vs base               │
    HandleRPC_TagAndEnd/Client/OK-16         4.529µ ±  4%   4.474µ ± 4%        ~ (p=0.240 n=6)
    HandleRPC_TagAndEnd/Client/NotFound-16   4.881µ ±  7%   4.778µ ± 1%        ~ (p=0.240 n=6)
    HandleRPC_TagAndEnd/Server/OK-16         5.981µ ± 14%   4.601µ ± 5%  -23.07% (p=0.002 n=6)
    HandleRPC_TagAndEnd/Server/NotFound-16   5.588µ ± 17%   4.662µ ± 2%  -16.56% (p=0.041 n=6)
    geomean                                  5.213µ         4.627µ       -11.24%
    
                                           │    before    │                after                 │
                                           │     B/op     │     B/op      vs base                │
    HandleRPC_TagAndEnd/Client/OK-16         1.953Ki ± 0%   1.953Ki ± 0%       ~ (p=1.000 n=6) ¹
    HandleRPC_TagAndEnd/Client/NotFound-16   2.016Ki ± 0%   2.016Ki ± 0%       ~ (p=1.000 n=6) ¹
    HandleRPC_TagAndEnd/Server/OK-16         2.000Ki ± 0%   2.000Ki ± 0%       ~ (p=1.000 n=6) ¹
    HandleRPC_TagAndEnd/Server/NotFound-16   2.000Ki ± 0%   2.000Ki ± 0%       ~ (p=1.000 n=6) ¹
    geomean                                  1.992Ki        1.992Ki       +0.00%
    ¹ all samples are equal
    
                                           │   before   │               after                │
                                           │ allocs/op  │ allocs/op   vs base                │
    HandleRPC_TagAndEnd/Client/OK-16         19.00 ± 0%   19.00 ± 0%       ~ (p=1.000 n=6) ¹
    HandleRPC_TagAndEnd/Client/NotFound-16   19.00 ± 0%   19.00 ± 0%       ~ (p=1.000 n=6) ¹
    HandleRPC_TagAndEnd/Server/OK-16         19.00 ± 0%   19.00 ± 0%       ~ (p=1.000 n=6) ¹
    HandleRPC_TagAndEnd/Server/NotFound-16   19.00 ± 0%   19.00 ± 0%       ~ (p=1.000 n=6) ¹
    geomean                                  19.00        19.00       +0.00%
    ¹ all samples are equal
    

    </details>

    Diff: 502 lines (+376 / -126) across 6 files Reviewer: ps-mir Review duration: 7359m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 502 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.372
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10343"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 47.5% (MEDIUM) · Higher = larger blast radius
    47.5%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 18.8% · Safe to merge
    18.8%