File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
projects/observability/src
shared/components/span-detail Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ export * from './shared/services/entity-breadcrumb/entity-breadcrumb.resolver';
97
97
// Span Detail
98
98
export { SpanData } from './shared/components/span-detail/span-data' ;
99
99
export { SpanTitle } from './shared/components/span-detail/span-title' ;
100
+ export { SpanDetailTab } from './shared/components/span-detail/span-detail-tab' ;
101
+
100
102
export * from './shared/components/span-detail/span-detail.component' ;
101
103
export * from './shared/components/span-detail/span-detail.module' ;
102
104
export { SpanDetailLayoutStyle } from './shared/components/span-detail/span-detail-layout-style' ;
Original file line number Diff line number Diff line change @@ -24,7 +24,11 @@ import { SpanDetailTab } from './span-detail-tab';
24
24
<ng-content></ng-content>
25
25
</div>
26
26
27
- <ht-tab-group class="tabs-group" [activeTabLabel]="this.activeTabLabel">
27
+ <ht-tab-group
28
+ class="tabs-group"
29
+ [activeTabLabel]="this.activeTabLabel"
30
+ (activeTabLabelChange)="this.onActiveTabLabelChange($event)"
31
+ >
28
32
<ht-tab label="${ SpanDetailTab . Request } " *ngIf="this.showRequestTab">
29
33
<ht-span-request-detail
30
34
class="request"
@@ -69,6 +73,9 @@ export class SpanDetailComponent implements OnChanges {
69
73
@Input ( )
70
74
public activeTabLabel ?: SpanDetailTab ;
71
75
76
+ @Output ( )
77
+ private readonly activeTabLabelChange : EventEmitter < SpanDetailTab > = new EventEmitter < SpanDetailTab > ( ) ;
78
+
72
79
@Output ( )
73
80
public readonly closed : EventEmitter < void > = new EventEmitter < void > ( ) ;
74
81
@@ -93,4 +100,9 @@ export class SpanDetailComponent implements OnChanges {
93
100
this . totalLogEvents = ( this . spanData ?. logEvents ?? [ ] ) . length ;
94
101
}
95
102
}
103
+
104
+ public onActiveTabLabelChange ( tabLabel : SpanDetailTab ) : void {
105
+ this . activeTabLabel = tabLabel ;
106
+ this . activeTabLabelChange . emit ( tabLabel ) ;
107
+ }
96
108
}
You can’t perform that action at this time.
0 commit comments