File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { Span as SpanClass, SpanRecorder } from './span';
12
12
13
13
/** JSDoc */
14
14
export class Transaction extends SpanClass implements TransactionInterface {
15
- public name : string ;
15
+ public name : string | Symbol ;
16
16
17
17
public metadata : TransactionMetadata ;
18
18
@@ -51,7 +51,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
51
51
/**
52
52
* JSDoc
53
53
*/
54
- public setName ( name : string ) : void {
54
+ public setName ( name : string | Symbol ) : void {
55
55
this . name = name ;
56
56
}
57
57
@@ -142,7 +142,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
142
142
transaction . measurements = this . _measurements ;
143
143
}
144
144
145
- logger . log ( `[Tracing] Finishing ${ this . op } transaction: ${ this . name } .` ) ;
145
+ logger . log ( `[Tracing] Finishing ${ this . op } transaction: ${ this . name . toString ( ) } .` ) ;
146
146
147
147
return this . _hub . captureEvent ( transaction ) ;
148
148
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export interface Event {
28
28
environment ?: string ;
29
29
sdk ?: SdkInfo ;
30
30
request ?: Request ;
31
- transaction ?: string ;
31
+ transaction ?: string | Symbol ;
32
32
modules ?: { [ key : string ] : string } ;
33
33
fingerprint ?: string [ ] ;
34
34
exception ?: {
@@ -37,7 +37,7 @@ export interface Event {
37
37
stacktrace ?: Stacktrace ;
38
38
breadcrumbs ?: Breadcrumb [ ] ;
39
39
contexts ?: Contexts ;
40
- tags ?: { [ key : string ] : Primitive } ;
40
+ tags ?: { [ key : string ] : Primitive | Symbol } ;
41
41
extra ?: Extras ;
42
42
user ?: User ;
43
43
type ?: EventType ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export interface TransactionContext extends SpanContext {
8
8
/**
9
9
* Human-readable identifier for the transaction
10
10
*/
11
- name : string ;
11
+ name : string | Symbol ;
12
12
13
13
/**
14
14
* If true, sets the end timestamp of the transaction to the highest timestamp of child spans, trimming
@@ -56,7 +56,7 @@ export interface Transaction extends TransactionContext, Span {
56
56
/**
57
57
* @inheritDoc
58
58
*/
59
- tags : { [ key : string ] : Primitive } ;
59
+ tags : { [ key : string ] : Primitive | Symbol } ;
60
60
61
61
/**
62
62
* @inheritDoc
@@ -71,7 +71,7 @@ export interface Transaction extends TransactionContext, Span {
71
71
/**
72
72
* Set the name of the transaction
73
73
*/
74
- setName ( name : string ) : void ;
74
+ setName ( name : string | Symbol ) : void ;
75
75
76
76
/** Returns the current transaction properties as a `TransactionContext` */
77
77
toContext ( ) : TransactionContext ;
You can’t perform that action at this time.
0 commit comments