You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/spans/span-event.js
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -328,50 +328,50 @@ class SpanEvent {
328
328
329
329
if(isEntry){
330
330
this.addIntrinsicAttribute('nr.pg',true)
331
-
logger.trace('Span %s is an entry point, keeping span unchanged.',this.intrinsics.name)
331
+
logger.trace('Span %s(%s) is an entry point, keeping span unchanged.',this.intrinsics.name,this.id)
332
332
returnthis
333
333
}
334
334
335
335
if(this.isLlmSpan){
336
-
logger.trace('Span %s is an LLM span, keeping span unchanged.',this.intrinsics.name)
336
+
logger.trace('Span %s(%s) is an LLM span, keeping span unchanged.',this.intrinsics.name,this.id)
337
337
returnthis
338
338
}
339
339
340
340
if(!this.isExitSpan){
341
-
logger.trace('Span %s is not an exit span and trace is partial granularity type: %s.',this.intrinsics.name,partialTrace.type)
341
+
logger.trace('Span %s(%s) is not an exit span and trace is partial granularity type: %s.',this.intrinsics.name,this.id,partialTrace.type)
342
342
returnnull
343
343
}
344
344
345
345
// partial granularity type rules layer on top of each other.
346
346
// running all logic assumes `compact` type
347
347
// it will return modified span once specific checks are done for a given type
348
348
if(!this.hasEntityRelationshipAttrs){
349
-
logger.trace('Span %s does not contain any entity relationship attributes %j and trace is partial granularity type: %s, dropping span.',this.intrinsics.name,this.attributes,partialTrace.type)
349
+
logger.trace('Span %s(%s) does not contain any entity relationship attributes %j and trace is partial granularity type: %s, dropping span.',this.intrinsics.name,this.id,this.attributes,partialTrace.type)
350
350
returnnull
351
351
}
352
352
353
353
if(partialTrace.type===PARTIAL_TYPES.REDUCED){
354
-
logger.trace('Span %s contains entity relationship attributes and trace is partial granularity type: %s, keeping span unchanged.',this.intrinsics.name,partialTrace.type)
354
+
logger.trace('Span %s(%s) contains entity relationship attributes and trace is partial granularity type: %s, keeping span unchanged.',this.intrinsics.name,this.id,partialTrace.type)
355
355
returnthis
356
356
}
357
357
358
358
this.attributes=this.filteredAttrs
359
359
this.customAttributes=Object.create(null)
360
360
361
361
if(partialTrace.type===PARTIAL_TYPES.ESSENTIAL){
362
-
logger.trace('Span %s contains entity relationship attributes and trace is partial granularity type: %s, only keeping entity relationship attributes and removing custom attributes.',this.intrinsics.name,partialTrace.type)
362
+
logger.trace('Span %s(%s) contains entity relationship attributes and trace is partial granularity type: %s, only keeping entity relationship attributes and removing custom attributes.',this.intrinsics.name,this.id,partialTrace.type)
logger.trace('Span %s has the same entity relationship attributes and trace is partial type %s, dropping span.',this.intrinsics.name,partialTrace.type)
369
+
logger.trace('Span %s(%s) has the same entity relationship attributes and trace is partial type %s, dropping span.',this.intrinsics.name,this.id,partialTrace.type)
370
370
returnnull
371
371
}
372
372
373
373
partialTrace.compactSpanGroups[this.id]=[this]
374
-
logger.trace('Span %s has unique entity relationship attributes %j and trace is partial type: %s, keeping span.',this.intrinsics.name,this.filteredAttrs,partialTrace.type)
374
+
logger.trace('Span %s(%s) has unique entity relationship attributes %j and trace is partial type: %s, keeping span.',this.intrinsics.name,this.id,this.filteredAttrs,partialTrace.type)
0 commit comments