File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ export abstract class BaseBackend<O extends Options> implements Backend {
94
94
* @inheritDoc
95
95
*/
96
96
public sendEvent ( event : Event ) : void {
97
+ logger . log ( `Sending event with ${ this . transport . constructor . name } ` ) ;
97
98
this . transport . sendEvent ( event ) . catch ( reason => {
98
99
logger . error ( `Error while sending event: ${ reason } ` ) ;
99
100
} ) ;
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ import { uuid4 } from '@sentry/utils/misc';
5
5
export class SpanContext {
6
6
public constructor (
7
7
public readonly traceId ?: string ,
8
- public readonly spanId : string = uuid4 ( ) , // private readonly parentId: string,
8
+ public readonly spanId : string = uuid4 ( ) . substring ( 16 ) , // private readonly parentId: string,
9
9
) { }
10
10
11
11
/**
12
12
* Returns debug version of the span.
13
13
*/
14
14
public toString ( ) : string {
15
- return `TraceId: ${ this . traceId } SpanId: ${ this . spanId } ` ;
15
+ return `${ ( this . traceId && `trace-id: ${ this . traceId } ;` ) || '' } span-id: ${ this . spanId } ` ;
16
16
}
17
17
}
You can’t perform that action at this time.
0 commit comments