drop: [rhoai-3.6] Fix empty `spans.type` for OTLP-ingested spans #916
<!-- coderabbit-ai-generated:v1 -->
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: skip review by coderabbit.ai -->
[!IMPORTANT]
## Review skipped
> Auto reviews are disabled on base/target branches other than the default branch.
>
> Please check the settings in the CodeRabbit UI or the.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.
> <details>
<summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary>
<dl>
<dd>
<br>
> - Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID: 870049a0-616f-4173-b663-6a5d704e3929> </dd>
</dl>
</details>
> You can disable this status message by setting thereviews.review_statustofalsein the CodeRabbit configuration file.
> Use the checkbox below for a quick retry:
- [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger review
<!-- end of auto-generated comment: skip review by coderabbit.ai -->
<!-- post-codefreeze-gatekeeper -->
Post-Codefreeze Gatekeeper — FAILED
Target branch: rhoai-3.6
Required Jira version: 3.6 GA RHOAI RELEASE
❌ The following issues were found:
RHOAIENG-1234, RHAIENG-1234, RHAI-1234, or AIPCC-1234---
<sub>After resolving issues, rerun the <strong>Post-Codefreeze Gatekeeper</strong> workflow in GitHub Actions to revalidate the current PR description.</sub>
Approved these changes.
/lgtm
The litellm import failures unrelated. They are due to https://github.com/mlflow/mlflow/pull/21082/changes syncing down. The top level import in that upstream PR's test file really should have been made optional as other test files do.
jonburdo
HumairAK
Summary
Backport https://github.com/mlflow/mlflow/pull/28344 to
rhoai-3.6.OTLP spans whose type is derived from attributes such as
gen_ai.operation.name=execute_toolcan be visible in individual traces but missing from the Tool calls dashboard becausespans.typeis empty. Populate that column from the translated attributes, retaining the original-type andUNKNOWNfallbacks.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
opendatahub-io/mlflowmlflow/mlflowMerged upstream: https://github.com/mlflow/mlflow/pull/28344
Original issue: https://github.com/mlflow/mlflow/issues/24237
Testing
40 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.
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.