Skip to content

fix: mark explicit-ID observations as roots for legacy summaries - #129

Merged
kxzk merged 4 commits into
mainfrom
fix/explicit-trace-root-attribute
Oct 8, 2026
Merged

kxzk merged 4 commits into
mainfrom
fix/explicit-trace-root-attribute

Conversation

@kxzk

@kxzk kxzk commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

TL;DR

Mark explicit-ID observations as roots for legacy trace input/output summaries.

Why

Matches Python's root mark. OpenTelemetry parents and sampling stay unchanged. CI runs for all PR bases so #128 can depend on this PR.

Checklist

  • Has label
  • Has linked issue
  • Tests added for new behavior
  • Docs updated (if user-facing)

Related to #125. Stack order: #129, then #128.

Verification

Automated tests, RuboCop, and CI passed. Live Cloud export and CLI/UI readback verified legacy input/output and parent links.


Note

Low Risk
Scoped tracing attribute change with tests and docs; no auth or API contract changes beyond OTLP metadata for explicit trace IDs.

Overview
Observations created with an explicit trace_id: now set langfuse.internal.as_root on the OpenTelemetry span so legacy trace input/output summaries can treat them as roots (aligned with the Python SDK). OpenTelemetry parent linkage, sampling, and is_app_root behavior are unchanged.

Docs and YARD note that explicit IDs mark legacy roots without altering OTEL parents, and that repeated same-ID calls create separate observations. CHANGELOG records the fix; a new spec covers span/generation/event marking, nesting, disabled tracing, and OTLP export. CI now runs on pull requests targeting any branch (not only main).

Reviewed by Cursor Bugbot for commit edb0155. Bugbot is set up for automated code reviews on this repo. Configure here.

@kxzk kxzk added the bug Something isn't working label Oct 7, 2026
@kxzk kxzk mentioned this pull request Oct 7, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant