File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -133,14 +133,14 @@ export class Span extends opentracing.Span implements SpanInterface {
133
133
*/
134
134
public toJSON ( ) : object {
135
135
return {
136
- finishTime : ( this . finishTime && this . finishTime / 1000 ) || undefined ,
136
+ finish_time : ( this . finishTime && this . finishTime / 1000 ) || undefined ,
137
137
logs : this . logs . length === 0 ? undefined : this . logs ,
138
138
operation : this . operation ,
139
139
references : this . references && this . references ,
140
- spanId : this . spanContext . spanId ,
141
- startTime : this . startTime / 1000 ,
140
+ span_id : this . spanContext . spanId ,
141
+ start_time : this . startTime / 1000 ,
142
142
tags : Object . keys ( this . tags ) . length === 0 ? undefined : this . tags ,
143
- traceId : this . spanContext . traceId ,
143
+ trace_id : this . spanContext . traceId ,
144
144
} ;
145
145
}
146
146
}
You can’t perform that action at this time.
0 commit comments