33exports [` Orchestrion JS Transformer > should transform CommonJS module correctly 1` ] = `
44{
55 " code" : " const { tracingChannel: tr_ch_apm_tracingChannel } = require(" diagnostics_channel " );
6+ const tr_ch_apm$up_asyncGet = tr_ch_apm_tracingChannel (" orchestrion:one:up:asyncGet" );
7+ const tr_ch_apm$up_asyncFetch = tr_ch_apm_tracingChannel (" orchestrion:one:up:asyncFetch" );
68const tr_ch_apm$up_fetch = tr_ch_apm_tracingChannel (" orchestrion:one:up:fetch" );
79const tr_ch_apm$up_constructor = tr_ch_apm_tracingChannel (" orchestrion:one:up:constructor" );
810module .exports = class Up {
@@ -47,6 +49,32 @@ module.exports = class Up {
4749 moduleVersion: " 1.0.0"
4850 });
4951 }
52+ async asyncFetch() {
53+ const __apm$original_args = arguments ;
54+ const __apm$traced = async ()=> {
55+ const __apm$wrapped = async ()=> {};
56+ return __apm$wrapped .apply (null , __apm$original_args );
57+ };
58+ if (! tr_ch_apm$up_asyncFetch .hasSubscribers ) return __apm$traced ();
59+ return tr_ch_apm$up_asyncFetch .tracePromise (__apm$traced , {
60+ arguments ,
61+ self: this ,
62+ moduleVersion: " 1.0.0"
63+ });
64+ }
65+ get() {
66+ const __apm$original_args = arguments ;
67+ const __apm$traced = ()=> {
68+ const __apm$wrapped = ()=> {};
69+ return __apm$wrapped .apply (null , __apm$original_args );
70+ };
71+ if (! tr_ch_apm$up_asyncGet .hasSubscribers ) return __apm$traced ();
72+ return tr_ch_apm$up_asyncGet .tracePromise (__apm$traced , {
73+ arguments ,
74+ self: this ,
75+ moduleVersion: " 1.0.0"
76+ });
77+ }
5078};
5179" ,
5280 " map" : undefined ,
@@ -56,6 +84,8 @@ module.exports = class Up {
5684exports [` Orchestrion JS Transformer > should transform ESM module correctly 1` ] = `
5785{
5886 " code" : " import { tracingChannel as tr_ch_apm_tracingChannel } from " diagnostics_channel " ;
87+ const tr_ch_apm$up_asyncGet = tr_ch_apm_tracingChannel (" orchestrion:one:up:asyncGet" );
88+ const tr_ch_apm$up_asyncFetch = tr_ch_apm_tracingChannel (" orchestrion:one:up:asyncFetch" );
5989const tr_ch_apm$up_fetch = tr_ch_apm_tracingChannel (" orchestrion:one:up:fetch" );
6090const tr_ch_apm$up_constructor = tr_ch_apm_tracingChannel (" orchestrion:one:up:constructor" );
6191export class Up {
@@ -100,6 +130,32 @@ export class Up {
100130 moduleVersion: " 1.0.0"
101131 });
102132 }
133+ async asyncFetch() {
134+ const __apm$original_args = arguments ;
135+ const __apm$traced = async ()=> {
136+ const __apm$wrapped = async ()=> {};
137+ return __apm$wrapped .apply (null , __apm$original_args );
138+ };
139+ if (! tr_ch_apm$up_asyncFetch .hasSubscribers ) return __apm$traced ();
140+ return tr_ch_apm$up_asyncFetch .tracePromise (__apm$traced , {
141+ arguments ,
142+ self: this ,
143+ moduleVersion: " 1.0.0"
144+ });
145+ }
146+ get() {
147+ const __apm$original_args = arguments ;
148+ const __apm$traced = ()=> {
149+ const __apm$wrapped = ()=> {};
150+ return __apm$wrapped .apply (null , __apm$original_args );
151+ };
152+ if (! tr_ch_apm$up_asyncGet .hasSubscribers ) return __apm$traced ();
153+ return tr_ch_apm$up_asyncGet .tracePromise (__apm$traced , {
154+ arguments ,
155+ self: this ,
156+ moduleVersion: " 1.0.0"
157+ });
158+ }
103159}
104160" ,
105161 " map" : undefined ,
@@ -109,6 +165,8 @@ export class Up {
109165exports [` Orchestrion JS Transformer > should transform TypeScript with source map correctly 1` ] = `
110166{
111167 " code" : " import { tracingChannel as tr_ch_apm_tracingChannel } from " diagnostics_channel " ;
168+ const tr_ch_apm$up_asyncGet = tr_ch_apm_tracingChannel (" orchestrion:one:up:asyncGet" );
169+ const tr_ch_apm$up_asyncFetch = tr_ch_apm_tracingChannel (" orchestrion:one:up:asyncFetch" );
112170const tr_ch_apm$up_fetch = tr_ch_apm_tracingChannel (" orchestrion:one:up:fetch" );
113171const tr_ch_apm$up_constructor = tr_ch_apm_tracingChannel (" orchestrion:one:up:constructor" );
114172export class Up {
@@ -153,8 +211,34 @@ export class Up {
153211 moduleVersion: " 1.0.0"
154212 });
155213 }
214+ async asyncFetch() {
215+ const __apm$original_args = arguments ;
216+ const __apm$traced = async ()=> {
217+ const __apm$wrapped = async ()=> {};
218+ return __apm$wrapped .apply (null , __apm$original_args );
219+ };
220+ if (! tr_ch_apm$up_asyncFetch .hasSubscribers ) return __apm$traced ();
221+ return tr_ch_apm$up_asyncFetch .tracePromise (__apm$traced , {
222+ arguments ,
223+ self: this ,
224+ moduleVersion: " 1.0.0"
225+ });
226+ }
227+ get() {
228+ const __apm$original_args = arguments ;
229+ const __apm$traced = ()=> {
230+ const __apm$wrapped = ()=> {};
231+ return __apm$wrapped .apply (null , __apm$original_args );
232+ };
233+ if (! tr_ch_apm$up_asyncGet .hasSubscribers ) return __apm$traced ();
234+ return tr_ch_apm$up_asyncGet .tracePromise (__apm$traced , {
235+ arguments ,
236+ self: this ,
237+ moduleVersion: " 1.0.0"
238+ });
239+ }
156240}
157241" ,
158- " map" : " {" version " :3," file " :" module .js " ," sources " :[" module .ts " ]," sourceRoot " :" " ," names " :[]," mappings " :" ;;;AAEA ,MAAM ,CAAA ,MAAO ,EAAE ;IACX ,aAAA ;;;;;;;;;YACI ,OAAO ,CAAC ,GAAG ,CAAC ,aAAa ,CAAC ,CAAC ;;;;;;;;;;;;;;;;IAC / B ,CAAC ;IACD ,KAAK ,IAAS ,EAAA ;;;mCAAR ;gBACF ,OAAO ,CAAC ,GAAG ,CAAC ,OAAO ,CAAC ,CAAC ;;;;;;;;;;IACzB ,CAAC ;CACJ " }" ,
242+ " map" : " {" version " :3," file " :" module .js " ," sources " :[" module .ts " ]," sourceRoot " :" " ," names " :[]," mappings " :" ;;;;; AAEA ,MAAM ,CAAA ,MAAO ,EAAE ;IACX ,aAAA ;;;;;;;;;YACI ,OAAO ,CAAC ,GAAG ,CAAC ,aAAa ,CAAC ,CAAC ;;;;;;;;;;;;;;;;IAC / B ,CAAC ;IACD ,KAAK ,IAAS ,EAAA ;;;mCAAR ;gBACF ,OAAO ,CAAC ,GAAG ,CAAC ,OAAO ,CAAC ,CAAC ;;;;;;;;;;IACzB ,CAAC ;IACD , KAAK , CAAC , UAAU , GAAA ;;;;;;;;;;;; IAAU , CAAC ; IAC3B , GAAG , GAAA ;;;;;;;;;;;; IAAU , CAAC ; CACjB " }" ,
159243}
160244` ;
0 commit comments