← Back to Pull requests

drop: [rhoai-3.5] Fix empty `spans.type` for OTLP-ingested spans #915

Closed
unknown closed this pull request without merging on Dec 01, 2026 21:52 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 19:02 UTC
Author

Summary

Backport https://github.com/mlflow/mlflow/pull/28344 to rhoai-3.5.

OTLP spans whose type is derived from attributes such as gen_ai.operation.name=execute_tool can be visible in individual traces but missing from the Tool calls dashboard because spans.type is empty. Populate that column from the translated attributes, retaining the original-type and UNKNOWN fallbacks.

Cherry-picked upstream commit 2a94f49e46455690835c46a54779416431b32024, preserving DEEPIKA-217M's co-authorship. Resolved branch-specific import and test-placement conflicts while retaining this branch's existing serialization behavior. Includes the upstream storage and metrics regression tests. Existing rows are not backfilled.

Upstream / Downstream Impact

  • Downstream-only change for opendatahub-io/mlflow

  • Also affects upstream mlflow/mlflow

  • No upstream impact / not applicable
  • Merged upstream: https://github.com/mlflow/mlflow/pull/28344
    Original issue: https://github.com/mlflow/mlflow/issues/24237

    Testing

  • CI

  • Unit tests

  • Manual testing

  • Not run (explain why)
  • 22 focused tests passed on this branch, covering both workspace-disabled and workspace-enabled modes. All applicable pre-commit checks passed for the three changed files.

    python -m pytest \
      tests/store/tracking/sqlalchemy_store/test_sqlalchemy_store_traces.py \
      tests/store/tracking/sqlalchemy_store/test_sqlalchemy_store_query_trace_metrics.py \
      -k 'persists_translated_otel_span_type or counts_otel_tool_spans or log_spans_multiple_traces or log_spans_with_single_connection_pool or log_spans_token_usage or log_spans_writes_authoritative_cost_and_model_columns or log_spans_rejects_oversized_promoted_dimensions or query_trace_metrics_span' \
      -q -n 0
    

    The regression tests cover raw OTLP span type translation, explicit type preservation, missing/empty type fallbacks, and metrics queries that count translated tool spans while excluding model spans.

    Diff: 248 lines (+186 / -62) across 3 files Reviewer: jonburdo Review duration: 169m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 248 lines diff across 3 files
    0.39
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #915"
    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: 38.9% (MEDIUM) · Higher = larger blast radius
    38.9%
    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: 15.4% · Safe to merge
    15.4%