Skip to content

Commit 3cb722e

Browse files
fix: adding trace start time
1 parent 2e7f58b commit 3cb722e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/observability/src/shared/components/table/data-cell/log-timestamp/log-timestamp-table-cell-renderer.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { ObservabilityTableCellType } from '../../observability-table-cell-type'
3333
parser: CoreTableCellParserType.NoOp
3434
})
3535
export class LogTimestampTableCellRendererComponent extends TableCellRendererBase<string> implements OnInit {
36-
public readonly spanStartTime: number;
36+
public readonly traceStartTime: number;
3737
public readonly timestamp?: string;
3838
public readonly duration?: string;
3939
public readonly readableDateTime?: string;
@@ -49,7 +49,7 @@ export class LogTimestampTableCellRendererComponent extends TableCellRendererBas
4949
@Inject(TABLE_ROW_DATA) rowData: LogEvent
5050
) {
5151
super(columnConfig, index, parser, cellData, rowData);
52-
this.spanStartTime = rowData.spanStartTime as number;
52+
this.traceStartTime = rowData.traceStartTime as number;
5353
this.timestamp = rowData.timestamp;
5454
this.readableDateTime =
5555
this.timestamp
@@ -60,7 +60,7 @@ export class LogTimestampTableCellRendererComponent extends TableCellRendererBas
6060

6161
const date: Date = this.dateCoercer.coerce(this.timestamp) ?? new Date();
6262
const decimalMilliseconds: string = this.getDecimalMilliSeconds(this.timestamp, 2);
63-
this.duration = date.getTime() - this.spanStartTime + decimalMilliseconds + ' ms';
63+
this.duration = date.getTime() - this.traceStartTime + decimalMilliseconds + ' ms';
6464
}
6565

6666
private getDecimalMilliSeconds(timestamp: string = '', precision: number): string {

0 commit comments

Comments
 (0)