Skip to content

Commit 09a1427

Browse files
fix(ray): long running spans have now the right resource name [backport 3.16] (#14904)
Backport 109a976 from #14818 to 3.16. Long running spans were appearing with the operation name as the span name making the trace hard to interpret until the job finished. This PR adds the resource name to partial flush of long running spans Co-authored-by: Louis Tricot <[email protected]>
1 parent c680137 commit 09a1427

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ddtrace/contrib/internal/ray/span_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def _create_resubmit_timer(self, submission_id: str, time: float) -> None:
159159
def _recreate_job_span(self, job_span: Span) -> Span:
160160
new_span = Span(
161161
name=job_span.name,
162+
resource=job_span.resource,
162163
service=job_span.service,
163164
span_type=job_span.span_type,
164165
trace_id=job_span.trace_id,
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
fixes:
3+
- |
4+
ray: This fix resolves an issue where long-running spans did not preserve the correct resource name when being recreated.

0 commit comments

Comments
 (0)