|
1 | 1 | import { tracingChannel as tr_ch_apm_tracingChannel } from "diagnostics_channel"; |
2 | | -const tr_ch_apm$up:fetch = tr_ch_apm_tracingChannel("orchestrion:one:up:fetch"); |
3 | | -const tr_ch_apm$up:constructor = tr_ch_apm_tracingChannel("orchestrion:one:up:constructor"); |
| 2 | +const tr_ch_apm$up_fetch = tr_ch_apm_tracingChannel("orchestrion:one:up:fetch"); |
| 3 | +const tr_ch_apm$up_constructor = tr_ch_apm_tracingChannel("orchestrion:one:up:constructor"); |
4 | 4 | export class Up { |
5 | 5 | constructor(){ |
6 | | - const tr_ch_apm_ctx$up:constructor = { |
| 6 | + const tr_ch_apm_ctx$up_constructor = { |
7 | 7 | arguments |
8 | 8 | }; |
9 | 9 | try { |
10 | | - if (tr_ch_apm$up:constructor.hasSubscribers) { |
11 | | - tr_ch_apm$up:constructor.start.publish(tr_ch_apm_ctx$up:constructor); |
| 10 | + if (tr_ch_apm$up_constructor.hasSubscribers) { |
| 11 | + tr_ch_apm$up_constructor.start.publish(tr_ch_apm_ctx$up_constructor); |
12 | 12 | } |
13 | 13 | console.log('constructor'); |
14 | 14 | } catch (tr_ch_err) { |
15 | | - if (tr_ch_apm$up:constructor.hasSubscribers) { |
16 | | - tr_ch_apm_ctx$up:constructor.error = tr_ch_err; |
| 15 | + if (tr_ch_apm$up_constructor.hasSubscribers) { |
| 16 | + tr_ch_apm_ctx$up_constructor.error = tr_ch_err; |
17 | 17 | try { |
18 | | - tr_ch_apm_ctx$up:constructor.self = this; |
| 18 | + tr_ch_apm_ctx$up_constructor.self = this; |
19 | 19 | } catch (refErr) {} |
20 | | - tr_ch_apm$up:constructor.error.publish(tr_ch_apm_ctx$up:constructor); |
| 20 | + tr_ch_apm$up_constructor.error.publish(tr_ch_apm_ctx$up_constructor); |
21 | 21 | } |
22 | 22 | throw tr_ch_err; |
23 | 23 | } finally{ |
24 | | - if (tr_ch_apm$up:constructor.hasSubscribers) { |
25 | | - tr_ch_apm_ctx$up:constructor.self = this; |
26 | | - tr_ch_apm$up:constructor.end.publish(tr_ch_apm_ctx$up:constructor); |
| 24 | + if (tr_ch_apm$up_constructor.hasSubscribers) { |
| 25 | + tr_ch_apm_ctx$up_constructor.self = this; |
| 26 | + tr_ch_apm$up_constructor.end.publish(tr_ch_apm_ctx$up_constructor); |
27 | 27 | } |
28 | 28 | } |
29 | 29 | } |
30 | 30 | fetch() { |
31 | 31 | const traced = ()=>{ |
32 | 32 | console.log('fetch'); |
33 | 33 | }; |
34 | | - if (!tr_ch_apm$up:fetch.hasSubscribers) return traced(); |
35 | | - return tr_ch_apm$up:fetch.traceSync(traced, { |
| 34 | + if (!tr_ch_apm$up_fetch.hasSubscribers) return traced(); |
| 35 | + return tr_ch_apm$up_fetch.traceSync(traced, { |
36 | 36 | arguments, |
37 | 37 | self: this |
38 | 38 | }); |
|
0 commit comments