File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ export class SpanPresenter extends BasePresenter {
460460 eventStore ,
461461 environmentId ,
462462 spanId ,
463- environmentId ,
463+ traceId ,
464464 createdAt ,
465465 completedAt ?? undefined ,
466466 { includeDebugLogs : true }
Original file line number Diff line number Diff line change 99 flattenAttributes ,
1010 isExceptionSpanEvent ,
1111 nanosecondsToMilliseconds ,
12- omit ,
1312 PRIMARY_VARIANT ,
1413 SemanticInternalAttributes ,
1514 SpanEvent ,
@@ -42,10 +41,10 @@ import {
4241 generateTraceId ,
4342 getDateFromNanoseconds ,
4443 getNowInNanoseconds ,
44+ isEmptyObject ,
4545 parseEventsField ,
46- stripAttributePrefix ,
4746 removePrivateProperties ,
48- isEmptyObject ,
47+ stripAttributePrefix ,
4948} from "./common.server" ;
5049import type {
5150 CompleteableTaskRun ,
@@ -60,7 +59,6 @@ import type {
6059 SpanDetail ,
6160 SpanDetailedSummary ,
6261 SpanSummary ,
63- TaskEventRecord ,
6462 TraceAttributes ,
6563 TraceDetailedSummary ,
6664 TraceEventOptions ,
@@ -824,13 +822,14 @@ export class EventRepository implements IEventRepository {
824822 ) : Promise < string | undefined > {
825823 return await startActiveSpan ( "getSpanOriginalRunId" , async ( s ) => {
826824 return await originalRunIdCache . swr ( traceId , spanId , async ( ) => {
827- const spanEvent = await this . #getSpanEvent(
825+ const spanEvent = await this . #getSpanEvent( {
828826 storeTable,
829827 spanId,
828+ environmentId,
830829 startCreatedAt,
831830 endCreatedAt,
832- { includeDebugLogs : false }
833- ) ;
831+ options : { includeDebugLogs : false } ,
832+ } ) ;
834833
835834 if ( ! spanEvent ) {
836835 return ;
You can’t perform that action at this time.
0 commit comments