Repository navigation
fix: mark explicit-ID observations as roots for legacy summaries - #129
Merged
Merged
Conversation
4 tasks done
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DRMark explicit-ID observations as roots for legacy trace input/output summaries.
WhyMatches Python's root mark. OpenTelemetry parents and sampling stay unchanged. CI runs for all PR bases so #128 can depend on this PR.
ChecklistRelated 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 setlangfuse.internal.as_rooton the OpenTelemetry span so legacy trace input/output summaries can treat them as roots (aligned with the Python SDK). OpenTelemetry parent linkage, sampling, andis_app_rootbehavior 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.