File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
projects/distributed-tracing/src/shared/components/span-detail Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ import { SpanDetailLayoutStyle } from './span-detail-layout-style';
46
46
<ht-tab label="Exit Calls" *ngIf="this.showExitCallsTab">
47
47
<ht-span-exit-calls [exitCalls]="this.spanData.exitCallsBreakup"></ht-span-exit-calls>
48
48
</ht-tab>
49
+ <ht-tab *ngIf="this.showLogEventstab" label="Logs" [badge]="this.totalLogEvents">
50
+ <ht-log-events-table
51
+ [logEvents]="this.spanData?.logEvents"
52
+ [spanStartTime]="this.spanData?.startTime"
53
+ ></ht-log-events-table>
54
+ </ht-tab>
49
55
</ht-tab-group>
50
56
</div>
51
57
`
@@ -66,12 +72,16 @@ export class SpanDetailComponent implements OnChanges {
66
72
public showRequestTab ?: boolean ;
67
73
public showResponseTab ?: boolean ;
68
74
public showExitCallsTab ?: boolean ;
75
+ public showLogEventstab ?: boolean ;
76
+ public totalLogEvents ?: number ;
69
77
70
78
public ngOnChanges ( changes : TypedSimpleChanges < this> ) : void {
71
79
if ( changes . spanData ) {
72
80
this . showRequestTab = ! isEmpty ( this . spanData ?. requestHeaders ) || ! isEmpty ( this . spanData ?. requestBody ) ;
73
81
this . showResponseTab = ! isEmpty ( this . spanData ?. responseHeaders ) || ! isEmpty ( this . spanData ?. responseBody ) ;
74
82
this . showExitCallsTab = ! isEmpty ( this . spanData ?. exitCallsBreakup ) ;
83
+ this . showLogEventstab = ! isEmpty ( this . spanData ?. logEvents ) ;
84
+ this . totalLogEvents = ( this . spanData ?. logEvents ?? [ ] ) . length ;
75
85
}
76
86
}
77
87
}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
ToggleButtonModule ,
12
12
TooltipModule
13
13
} from '@hypertrace/components' ;
14
+ import { LogEventsTableModule } from '../log-events/log-events-table.module' ;
14
15
import { SpanExitCallsModule } from './exit-calls/span-exit-calls.module' ;
15
16
import { SpanDetailTitleHeaderModule } from './headers/title/span-detail-title-header.module' ;
16
17
import { SpanRequestDetailModule } from './request/span-request-detail.module' ;
@@ -34,7 +35,8 @@ import { SpanTagsDetailModule } from './tags/span-tags-detail.module';
34
35
LoadAsyncModule ,
35
36
ListViewModule ,
36
37
SpanDetailTitleHeaderModule ,
37
- SpanExitCallsModule
38
+ SpanExitCallsModule ,
39
+ LogEventsTableModule
38
40
] ,
39
41
declarations : [ SpanDetailComponent ] ,
40
42
exports : [ SpanDetailComponent ]
You can’t perform that action at this time.
0 commit comments