File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,34 @@ class ApmBase {
76
76
}
77
77
}
78
78
79
+ startTransaction ( name , type ) {
80
+ if ( this . isEnabled ( ) ) {
81
+ var transactionService = this . serviceFactory . getService ( 'TransactionService' )
82
+ return transactionService . startTransaction ( name , type )
83
+ }
84
+ }
85
+
86
+ startSpan ( name , type ) {
87
+ if ( this . isEnabled ( ) ) {
88
+ var transactionService = this . serviceFactory . getService ( 'TransactionService' )
89
+ return transactionService . startSpan ( name , type )
90
+ }
91
+ }
92
+
93
+ getCurrentTransaction ( ) {
94
+ if ( this . isEnabled ( ) ) {
95
+ var transactionService = this . serviceFactory . getService ( 'TransactionService' )
96
+ return transactionService . getCurrentTransaction ( )
97
+ }
98
+ }
99
+
100
+ getTransactionService ( ) {
101
+ if ( this . isEnabled ( ) ) {
102
+ var transactionService = this . serviceFactory . getService ( 'TransactionService' )
103
+ return transactionService
104
+ }
105
+ }
106
+
79
107
captureError ( error ) {
80
108
if ( this . isEnabled ( ) ) {
81
109
var errorLogging = this . serviceFactory . getService ( 'ErrorLogging' )
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ var exports = {
17
17
default : apmBase . init . bind ( apmBase ) ,
18
18
init : apmBase . init . bind ( apmBase ) ,
19
19
ApmBase : ApmBase ,
20
- apmBase : apmBase
20
+ apmBase : apmBase ,
21
+ apm : apmBase
21
22
}
22
23
23
24
module . exports = exports
You can’t perform that action at this time.
0 commit comments