1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | exports.createNoopMeter = exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = exports.NOOP_OBSERVABLE_GAUGE_METRIC = exports.NOOP_OBSERVABLE_COUNTER_METRIC = exports.NOOP_UP_DOWN_COUNTER_METRIC = exports.NOOP_HISTOGRAM_METRIC = exports.NOOP_COUNTER_METRIC = exports.NOOP_METER = exports.NoopObservableUpDownCounterMetric = exports.NoopObservableGaugeMetric = exports.NoopObservableCounterMetric = exports.NoopObservableMetric = exports.NoopHistogramMetric = exports.NoopUpDownCounterMetric = exports.NoopCounterMetric = exports.NoopMetric = exports.NoopMeter = void 0;
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | class NoopMeter {
|
24 | constructor() { }
|
25 | |
26 |
|
27 |
|
28 | createHistogram(_name, _options) {
|
29 | return exports.NOOP_HISTOGRAM_METRIC;
|
30 | }
|
31 | |
32 |
|
33 |
|
34 | createCounter(_name, _options) {
|
35 | return exports.NOOP_COUNTER_METRIC;
|
36 | }
|
37 | |
38 |
|
39 |
|
40 | createUpDownCounter(_name, _options) {
|
41 | return exports.NOOP_UP_DOWN_COUNTER_METRIC;
|
42 | }
|
43 | |
44 |
|
45 |
|
46 | createObservableGauge(_name, _options) {
|
47 | return exports.NOOP_OBSERVABLE_GAUGE_METRIC;
|
48 | }
|
49 | |
50 |
|
51 |
|
52 | createObservableCounter(_name, _options) {
|
53 | return exports.NOOP_OBSERVABLE_COUNTER_METRIC;
|
54 | }
|
55 | |
56 |
|
57 |
|
58 | createObservableUpDownCounter(_name, _options) {
|
59 | return exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
|
60 | }
|
61 | |
62 |
|
63 |
|
64 | addBatchObservableCallback(_callback, _observables) { }
|
65 | |
66 |
|
67 |
|
68 | removeBatchObservableCallback(_callback) { }
|
69 | }
|
70 | exports.NoopMeter = NoopMeter;
|
71 | class NoopMetric {
|
72 | }
|
73 | exports.NoopMetric = NoopMetric;
|
74 | class NoopCounterMetric extends NoopMetric {
|
75 | add(_value, _attributes) { }
|
76 | }
|
77 | exports.NoopCounterMetric = NoopCounterMetric;
|
78 | class NoopUpDownCounterMetric extends NoopMetric {
|
79 | add(_value, _attributes) { }
|
80 | }
|
81 | exports.NoopUpDownCounterMetric = NoopUpDownCounterMetric;
|
82 | class NoopHistogramMetric extends NoopMetric {
|
83 | record(_value, _attributes) { }
|
84 | }
|
85 | exports.NoopHistogramMetric = NoopHistogramMetric;
|
86 | class NoopObservableMetric {
|
87 | addCallback(_callback) { }
|
88 | removeCallback(_callback) { }
|
89 | }
|
90 | exports.NoopObservableMetric = NoopObservableMetric;
|
91 | class NoopObservableCounterMetric extends NoopObservableMetric {
|
92 | }
|
93 | exports.NoopObservableCounterMetric = NoopObservableCounterMetric;
|
94 | class NoopObservableGaugeMetric extends NoopObservableMetric {
|
95 | }
|
96 | exports.NoopObservableGaugeMetric = NoopObservableGaugeMetric;
|
97 | class NoopObservableUpDownCounterMetric extends NoopObservableMetric {
|
98 | }
|
99 | exports.NoopObservableUpDownCounterMetric = NoopObservableUpDownCounterMetric;
|
100 | exports.NOOP_METER = new NoopMeter();
|
101 |
|
102 | exports.NOOP_COUNTER_METRIC = new NoopCounterMetric();
|
103 | exports.NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric();
|
104 | exports.NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric();
|
105 |
|
106 | exports.NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric();
|
107 | exports.NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric();
|
108 | exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric();
|
109 |
|
110 |
|
111 |
|
112 | function createNoopMeter() {
|
113 | return exports.NOOP_METER;
|
114 | }
|
115 | exports.createNoopMeter = createNoopMeter;
|
116 |
|
\ | No newline at end of file |