@burdenoff/be-sdk 2026.510.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +173 -0
- package/configs/eslint/index.js +492 -0
- package/configs/tsconfig/tsconfig.json +53 -0
- package/dist/EventQueueFactory-6NMSGECR.js +8 -0
- package/dist/EventQueueFactory-6NMSGECR.js.map +1 -0
- package/dist/auth/index.d.ts +66 -0
- package/dist/auth/index.js +8 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/cache/index.d.ts +2 -0
- package/dist/cache/index.js +6 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/captcha/index.d.ts +1 -0
- package/dist/captcha/index.js +4 -0
- package/dist/captcha/index.js.map +1 -0
- package/dist/chunk-2HANKZZM.js +245 -0
- package/dist/chunk-2HANKZZM.js.map +1 -0
- package/dist/chunk-2SD5L2F2.js +816 -0
- package/dist/chunk-2SD5L2F2.js.map +1 -0
- package/dist/chunk-3O2RQOPV.js +1068 -0
- package/dist/chunk-3O2RQOPV.js.map +1 -0
- package/dist/chunk-4B43DZIS.js +560 -0
- package/dist/chunk-4B43DZIS.js.map +1 -0
- package/dist/chunk-4XAEES25.js +2444 -0
- package/dist/chunk-4XAEES25.js.map +1 -0
- package/dist/chunk-4XGGWW36.js +1405 -0
- package/dist/chunk-4XGGWW36.js.map +1 -0
- package/dist/chunk-5LXDPGDH.js +245 -0
- package/dist/chunk-5LXDPGDH.js.map +1 -0
- package/dist/chunk-AI7L22ZJ.js +472 -0
- package/dist/chunk-AI7L22ZJ.js.map +1 -0
- package/dist/chunk-CBZNP6RF.js +286 -0
- package/dist/chunk-CBZNP6RF.js.map +1 -0
- package/dist/chunk-ELLX3K54.js +613 -0
- package/dist/chunk-ELLX3K54.js.map +1 -0
- package/dist/chunk-F5XEAGHQ.js +1875 -0
- package/dist/chunk-F5XEAGHQ.js.map +1 -0
- package/dist/chunk-FNZEQOJY.js +628 -0
- package/dist/chunk-FNZEQOJY.js.map +1 -0
- package/dist/chunk-GTEMQXCA.js +516 -0
- package/dist/chunk-GTEMQXCA.js.map +1 -0
- package/dist/chunk-HIWTWIGQ.js +226 -0
- package/dist/chunk-HIWTWIGQ.js.map +1 -0
- package/dist/chunk-IYE2NTRX.js +764 -0
- package/dist/chunk-IYE2NTRX.js.map +1 -0
- package/dist/chunk-J26YGR2U.js +1484 -0
- package/dist/chunk-J26YGR2U.js.map +1 -0
- package/dist/chunk-JG2FTZPI.js +509 -0
- package/dist/chunk-JG2FTZPI.js.map +1 -0
- package/dist/chunk-JVBTNSPG.js +1551 -0
- package/dist/chunk-JVBTNSPG.js.map +1 -0
- package/dist/chunk-L7ZMN2FJ.js +12 -0
- package/dist/chunk-L7ZMN2FJ.js.map +1 -0
- package/dist/chunk-M5IMU3US.js +473 -0
- package/dist/chunk-M5IMU3US.js.map +1 -0
- package/dist/chunk-MLW2HPS5.js +1267 -0
- package/dist/chunk-MLW2HPS5.js.map +1 -0
- package/dist/chunk-MNCGUYLJ.js +269 -0
- package/dist/chunk-MNCGUYLJ.js.map +1 -0
- package/dist/chunk-MOCUBSTW.js +373 -0
- package/dist/chunk-MOCUBSTW.js.map +1 -0
- package/dist/chunk-NGMEI42S.js +103 -0
- package/dist/chunk-NGMEI42S.js.map +1 -0
- package/dist/chunk-NUB5GQTU.js +270 -0
- package/dist/chunk-NUB5GQTU.js.map +1 -0
- package/dist/chunk-OVSYMNCI.js +145 -0
- package/dist/chunk-OVSYMNCI.js.map +1 -0
- package/dist/chunk-QLVKMWFA.js +94 -0
- package/dist/chunk-QLVKMWFA.js.map +1 -0
- package/dist/chunk-SAG6ZYWQ.js +89 -0
- package/dist/chunk-SAG6ZYWQ.js.map +1 -0
- package/dist/chunk-SAK2JCA7.js +198 -0
- package/dist/chunk-SAK2JCA7.js.map +1 -0
- package/dist/chunk-SBS4S2PJ.js +100 -0
- package/dist/chunk-SBS4S2PJ.js.map +1 -0
- package/dist/chunk-SNEOLWXT.js +148 -0
- package/dist/chunk-SNEOLWXT.js.map +1 -0
- package/dist/chunk-TKBD2ONF.js +564 -0
- package/dist/chunk-TKBD2ONF.js.map +1 -0
- package/dist/chunk-UBXFIIAW.js +127 -0
- package/dist/chunk-UBXFIIAW.js.map +1 -0
- package/dist/chunk-VI4VSNTI.js +57 -0
- package/dist/chunk-VI4VSNTI.js.map +1 -0
- package/dist/chunk-VWCN5PMD.js +268 -0
- package/dist/chunk-VWCN5PMD.js.map +1 -0
- package/dist/chunk-XC2YD6CF.js +913 -0
- package/dist/chunk-XC2YD6CF.js.map +1 -0
- package/dist/chunk-XE4OXN2W.js +10 -0
- package/dist/chunk-XE4OXN2W.js.map +1 -0
- package/dist/chunk-YMZEUTD2.js +110 -0
- package/dist/chunk-YMZEUTD2.js.map +1 -0
- package/dist/chunk-Z4IRLBWO.js +758 -0
- package/dist/chunk-Z4IRLBWO.js.map +1 -0
- package/dist/client/internal-client.d.ts +7 -0
- package/dist/client/internal-client.js +5 -0
- package/dist/client/internal-client.js.map +1 -0
- package/dist/client-CSjIrYKS.d.ts +77 -0
- package/dist/config-UKE2E3BW.js +4 -0
- package/dist/config-UKE2E3BW.js.map +1 -0
- package/dist/crypto/index.d.ts +1 -0
- package/dist/crypto/index.js +4 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/database/index.d.ts +117 -0
- package/dist/database/index.js +7 -0
- package/dist/database/index.js.map +1 -0
- package/dist/dataloader/index.d.ts +1 -0
- package/dist/dataloader/index.js +4 -0
- package/dist/dataloader/index.js.map +1 -0
- package/dist/esm-K6H7EIWK.js +1450 -0
- package/dist/esm-K6H7EIWK.js.map +1 -0
- package/dist/event-queue/index.d.ts +6 -0
- package/dist/event-queue/index.js +10 -0
- package/dist/event-queue/index.js.map +1 -0
- package/dist/export/index.d.ts +2 -0
- package/dist/export/index.js +9 -0
- package/dist/export/index.js.map +1 -0
- package/dist/feature-flags/index.d.ts +1 -0
- package/dist/feature-flags/index.js +4 -0
- package/dist/feature-flags/index.js.map +1 -0
- package/dist/gateway/index.d.ts +4 -0
- package/dist/gateway/index.js +8 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/security/index.d.ts +2 -0
- package/dist/gateway/security/index.js +5 -0
- package/dist/gateway/security/index.js.map +1 -0
- package/dist/graph/index.d.ts +9 -0
- package/dist/graph/index.js +13 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph-emitter-Bk0FqD53.d.ts +47 -0
- package/dist/graphql/index.d.ts +2 -0
- package/dist/graphql/index.js +7 -0
- package/dist/graphql/index.js.map +1 -0
- package/dist/graphql/services/index.d.ts +24 -0
- package/dist/graphql/services/index.js +5 -0
- package/dist/graphql/services/index.js.map +1 -0
- package/dist/graphql-BAVrUgBF.d.ts +22 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.js +5 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n-DA6IPnYy.d.ts +101 -0
- package/dist/index-4gKQKZ2B.d.ts +71 -0
- package/dist/index-B18rrFru.d.ts +42 -0
- package/dist/index-B70b5mYS.d.ts +33 -0
- package/dist/index-BMq3lFjj.d.ts +247 -0
- package/dist/index-BODgvRtL.d.ts +316 -0
- package/dist/index-BS2idbnr.d.ts +874 -0
- package/dist/index-BV3G48cH.d.ts +124 -0
- package/dist/index-CHbVw5M7.d.ts +73 -0
- package/dist/index-Cq_xNjcv.d.ts +602 -0
- package/dist/index-CrQgidpx.d.ts +77 -0
- package/dist/index-CyVEg86m.d.ts +309 -0
- package/dist/index-DOcBnmMe.d.ts +166 -0
- package/dist/index-DSOpj8DI.d.ts +17 -0
- package/dist/index-DW9q22GH.d.ts +75 -0
- package/dist/index-DlFDFyWD.d.ts +55 -0
- package/dist/index-DoK0bjhH.d.ts +607 -0
- package/dist/index-Dtf6FBaD.d.ts +199 -0
- package/dist/index-KVWGHMbS.d.ts +415 -0
- package/dist/index-PaojfSdd.d.ts +71 -0
- package/dist/index-RU_M5c74.d.ts +163 -0
- package/dist/index-UhkH2eaB.d.ts +192 -0
- package/dist/index-e_18DzAg.d.ts +18 -0
- package/dist/index-jOuh_TKn.d.ts +59 -0
- package/dist/index.d.ts +584 -0
- package/dist/index.js +2626 -0
- package/dist/index.js.map +1 -0
- package/dist/init/index.d.ts +2 -0
- package/dist/init/index.js +12 -0
- package/dist/init/index.js.map +1 -0
- package/dist/instrumentation/index.d.ts +3 -0
- package/dist/instrumentation/index.js +5 -0
- package/dist/instrumentation/index.js.map +1 -0
- package/dist/layer/index.d.ts +2 -0
- package/dist/layer/index.js +6 -0
- package/dist/layer/index.js.map +1 -0
- package/dist/layer-DDip18KY.d.ts +67 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/logger/index.js +4 -0
- package/dist/logger/index.js.map +1 -0
- package/dist/middleware/index.d.ts +3 -0
- package/dist/middleware/index.js +5 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/notifications/index.d.ts +4 -0
- package/dist/notifications/index.js +7 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/observability/index.d.ts +3 -0
- package/dist/observability/index.js +5 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/pino-logger-RYLGXPHZ.js +5 -0
- package/dist/pino-logger-RYLGXPHZ.js.map +1 -0
- package/dist/prisma/generator/index.d.ts +1 -0
- package/dist/prisma/generator/index.js +228 -0
- package/dist/prisma/generator/index.js.map +1 -0
- package/dist/prisma/index.d.ts +5 -0
- package/dist/prisma/index.js +12 -0
- package/dist/prisma/index.js.map +1 -0
- package/dist/prisma-extension-krXnYnrN.d.ts +30 -0
- package/dist/rbac/index.d.ts +116 -0
- package/dist/rbac/index.js +7 -0
- package/dist/rbac/index.js.map +1 -0
- package/dist/sdk-THO3IWEE.js +136 -0
- package/dist/sdk-THO3IWEE.js.map +1 -0
- package/dist/server/index.d.ts +359 -0
- package/dist/server/index.js +884 -0
- package/dist/server/index.js.map +1 -0
- package/dist/telemetry/index.d.ts +83 -0
- package/dist/telemetry/index.js +209 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/temporal/index.d.ts +148 -0
- package/dist/temporal/index.js +6 -0
- package/dist/temporal/index.js.map +1 -0
- package/dist/tracker/index.d.ts +5 -0
- package/dist/tracker/index.js +9 -0
- package/dist/tracker/index.js.map +1 -0
- package/dist/types-Bo2wkjSP.d.ts +35 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/workspace-guard-LHBNK4TG.js +5 -0
- package/dist/workspace-guard-LHBNK4TG.js.map +1 -0
- package/package.json +241 -0
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
import { L as Logger, l as logger } from './index-CrQgidpx.js';
|
|
2
|
+
|
|
3
|
+
interface InstrumentationFeatureFlags {
|
|
4
|
+
tracing: boolean;
|
|
5
|
+
metrics: boolean;
|
|
6
|
+
logging: boolean;
|
|
7
|
+
graphql: boolean;
|
|
8
|
+
database: boolean;
|
|
9
|
+
http: boolean;
|
|
10
|
+
cache: boolean;
|
|
11
|
+
eventQueue: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface TracingConfig {
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
serviceName: string;
|
|
16
|
+
serviceVersion?: string;
|
|
17
|
+
environment?: string;
|
|
18
|
+
exporterEndpoint?: string;
|
|
19
|
+
exporterType?: 'otlp' | 'console' | 'none';
|
|
20
|
+
samplingRate?: number;
|
|
21
|
+
propagationFormat?: 'w3c' | 'b3' | 'jaeger';
|
|
22
|
+
resourceAttributes?: Record<string, string>;
|
|
23
|
+
ignoredRoutes?: string[];
|
|
24
|
+
ignoredOperations?: string[];
|
|
25
|
+
}
|
|
26
|
+
interface MetricsConfig {
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
serviceName: string;
|
|
29
|
+
exporterEndpoint?: string;
|
|
30
|
+
exporterType?: 'otlp' | 'prometheus' | 'console' | 'none';
|
|
31
|
+
prometheusEndpoint?: string;
|
|
32
|
+
prometheusPort?: number;
|
|
33
|
+
collectInterval?: number;
|
|
34
|
+
defaultMetrics?: boolean;
|
|
35
|
+
metricPrefix?: string;
|
|
36
|
+
}
|
|
37
|
+
interface LoggingConfig {
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
includeTraceId?: boolean;
|
|
40
|
+
includeSpanId?: boolean;
|
|
41
|
+
includeTraceFlags?: boolean;
|
|
42
|
+
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
43
|
+
}
|
|
44
|
+
interface GraphQLInstrumentationConfig {
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
includeDocument?: boolean;
|
|
47
|
+
includeVariables?: boolean;
|
|
48
|
+
includeResult?: boolean;
|
|
49
|
+
documentDepth?: number;
|
|
50
|
+
ignoredOperations?: string[];
|
|
51
|
+
includeResolvers?: boolean;
|
|
52
|
+
resolverSpanDepth?: number;
|
|
53
|
+
}
|
|
54
|
+
interface DatabaseInstrumentationConfig {
|
|
55
|
+
enabled: boolean;
|
|
56
|
+
includeStatement?: boolean;
|
|
57
|
+
includeParameters?: boolean;
|
|
58
|
+
includeRowCount?: boolean;
|
|
59
|
+
slowQueryThreshold?: number;
|
|
60
|
+
ignoredOperations?: string[];
|
|
61
|
+
}
|
|
62
|
+
interface HTTPInstrumentationConfig {
|
|
63
|
+
enabled: boolean;
|
|
64
|
+
includeRequestHeaders?: boolean;
|
|
65
|
+
includeResponseHeaders?: boolean;
|
|
66
|
+
includeRequestBody?: boolean;
|
|
67
|
+
includeResponseBody?: boolean;
|
|
68
|
+
redactedHeaders?: string[];
|
|
69
|
+
ignoredRoutes?: string[];
|
|
70
|
+
maxBodySize?: number;
|
|
71
|
+
}
|
|
72
|
+
interface CacheInstrumentationConfig {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
includeKey?: boolean;
|
|
75
|
+
includeValueSize?: boolean;
|
|
76
|
+
includeTTL?: boolean;
|
|
77
|
+
}
|
|
78
|
+
interface EventQueueInstrumentationConfig {
|
|
79
|
+
enabled: boolean;
|
|
80
|
+
includePayload?: boolean;
|
|
81
|
+
includeHeaders?: boolean;
|
|
82
|
+
maxPayloadSize?: number;
|
|
83
|
+
}
|
|
84
|
+
interface InstrumentationConfig {
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
features: InstrumentationFeatureFlags;
|
|
87
|
+
tracing: TracingConfig;
|
|
88
|
+
metrics: MetricsConfig;
|
|
89
|
+
logging: LoggingConfig;
|
|
90
|
+
graphql: GraphQLInstrumentationConfig;
|
|
91
|
+
database: DatabaseInstrumentationConfig;
|
|
92
|
+
http: HTTPInstrumentationConfig;
|
|
93
|
+
cache: CacheInstrumentationConfig;
|
|
94
|
+
eventQueue: EventQueueInstrumentationConfig;
|
|
95
|
+
}
|
|
96
|
+
interface SpanAttributes$1 {
|
|
97
|
+
'service.name'?: string;
|
|
98
|
+
'service.version'?: string;
|
|
99
|
+
'deployment.environment'?: string;
|
|
100
|
+
'operation.name'?: string;
|
|
101
|
+
'operation.type'?: string;
|
|
102
|
+
'user.id'?: string;
|
|
103
|
+
'tenant.id'?: string;
|
|
104
|
+
'workspace.id'?: string;
|
|
105
|
+
'request.id'?: string;
|
|
106
|
+
error?: boolean;
|
|
107
|
+
'error.message'?: string;
|
|
108
|
+
'error.type'?: string;
|
|
109
|
+
[key: string]: string | number | boolean | undefined;
|
|
110
|
+
}
|
|
111
|
+
type MetricType = 'counter' | 'histogram' | 'gauge' | 'upDownCounter';
|
|
112
|
+
interface MetricDefinition {
|
|
113
|
+
name: string;
|
|
114
|
+
description: string;
|
|
115
|
+
type: MetricType;
|
|
116
|
+
unit?: string;
|
|
117
|
+
labelKeys?: string[];
|
|
118
|
+
boundaries?: number[];
|
|
119
|
+
}
|
|
120
|
+
declare const STANDARD_METRICS: Record<string, MetricDefinition>;
|
|
121
|
+
interface SpanContext {
|
|
122
|
+
traceId: string;
|
|
123
|
+
spanId: string;
|
|
124
|
+
traceFlags: number;
|
|
125
|
+
isRemote?: boolean;
|
|
126
|
+
}
|
|
127
|
+
interface TraceContext {
|
|
128
|
+
traceId?: string;
|
|
129
|
+
spanId?: string;
|
|
130
|
+
traceFlags?: number;
|
|
131
|
+
parentSpanId?: string;
|
|
132
|
+
}
|
|
133
|
+
interface OperationContext {
|
|
134
|
+
operationName: string;
|
|
135
|
+
operationType: string;
|
|
136
|
+
actorId?: string;
|
|
137
|
+
tenantId?: string;
|
|
138
|
+
workspaceId?: string;
|
|
139
|
+
requestId?: string;
|
|
140
|
+
attributes?: Record<string, string | number | boolean>;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
type MetricLabels = Record<string, string>;
|
|
144
|
+
interface Counter {
|
|
145
|
+
add(value: number, labels?: MetricLabels): void;
|
|
146
|
+
inc(labels?: MetricLabels): void;
|
|
147
|
+
getValue(labels?: MetricLabels): number;
|
|
148
|
+
}
|
|
149
|
+
interface Histogram {
|
|
150
|
+
record(value: number, labels?: MetricLabels): void;
|
|
151
|
+
getData(labels?: MetricLabels): HistogramData;
|
|
152
|
+
}
|
|
153
|
+
interface HistogramData {
|
|
154
|
+
count: number;
|
|
155
|
+
sum: number;
|
|
156
|
+
min: number;
|
|
157
|
+
max: number;
|
|
158
|
+
avg: number;
|
|
159
|
+
buckets: Map<number, number>;
|
|
160
|
+
percentiles: {
|
|
161
|
+
p50: number;
|
|
162
|
+
p75: number;
|
|
163
|
+
p90: number;
|
|
164
|
+
p95: number;
|
|
165
|
+
p99: number;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
interface Gauge {
|
|
169
|
+
set(value: number, labels?: MetricLabels): void;
|
|
170
|
+
add(value: number, labels?: MetricLabels): void;
|
|
171
|
+
sub(value: number, labels?: MetricLabels): void;
|
|
172
|
+
getValue(labels?: MetricLabels): number;
|
|
173
|
+
}
|
|
174
|
+
interface UpDownCounter {
|
|
175
|
+
add(value: number, labels?: MetricLabels): void;
|
|
176
|
+
getValue(labels?: MetricLabels): number;
|
|
177
|
+
}
|
|
178
|
+
declare class MetricsRegistry {
|
|
179
|
+
private counters;
|
|
180
|
+
private histograms;
|
|
181
|
+
private gauges;
|
|
182
|
+
private upDownCounters;
|
|
183
|
+
private serviceName;
|
|
184
|
+
private metricPrefix;
|
|
185
|
+
constructor(serviceName: string, metricPrefix?: string);
|
|
186
|
+
getServiceName(): string;
|
|
187
|
+
private isEnabled;
|
|
188
|
+
private getPrefixedName;
|
|
189
|
+
createCounter(name: string, description: string): Counter;
|
|
190
|
+
createHistogram(name: string, description: string, boundaries?: number[]): Histogram;
|
|
191
|
+
createGauge(name: string, description: string): Gauge;
|
|
192
|
+
createUpDownCounter(name: string, description: string): UpDownCounter;
|
|
193
|
+
createFromDefinition(definition: MetricDefinition): Counter | Histogram | Gauge | UpDownCounter;
|
|
194
|
+
getAllMetrics(): {
|
|
195
|
+
counters: Array<{
|
|
196
|
+
name: string;
|
|
197
|
+
description: string;
|
|
198
|
+
values: Map<string, number>;
|
|
199
|
+
}>;
|
|
200
|
+
histograms: Array<{
|
|
201
|
+
name: string;
|
|
202
|
+
description: string;
|
|
203
|
+
data: Map<string, HistogramData>;
|
|
204
|
+
}>;
|
|
205
|
+
gauges: Array<{
|
|
206
|
+
name: string;
|
|
207
|
+
description: string;
|
|
208
|
+
values: Map<string, number>;
|
|
209
|
+
}>;
|
|
210
|
+
upDownCounters: Array<{
|
|
211
|
+
name: string;
|
|
212
|
+
description: string;
|
|
213
|
+
values: Map<string, number>;
|
|
214
|
+
}>;
|
|
215
|
+
};
|
|
216
|
+
private exportCountersToPrometheus;
|
|
217
|
+
private exportHistogramsToPrometheus;
|
|
218
|
+
private exportGaugesToPrometheus;
|
|
219
|
+
private exportUpDownCountersToPrometheus;
|
|
220
|
+
toPrometheusFormat(): string;
|
|
221
|
+
reset(): void;
|
|
222
|
+
clear(): void;
|
|
223
|
+
}
|
|
224
|
+
declare function initializeMetricsRegistry(serviceName: string, metricPrefix?: string): MetricsRegistry;
|
|
225
|
+
declare function getMetricsRegistry(): MetricsRegistry;
|
|
226
|
+
declare function isMetricsRegistryInitialized(): boolean;
|
|
227
|
+
declare function resetMetricsRegistry(): void;
|
|
228
|
+
declare function createCounter(name: string, description: string): Counter;
|
|
229
|
+
declare function createHistogram(name: string, description: string, boundaries?: number[]): Histogram;
|
|
230
|
+
declare function createGauge(name: string, description: string): Gauge;
|
|
231
|
+
declare function createUpDownCounter(name: string, description: string): UpDownCounter;
|
|
232
|
+
|
|
233
|
+
declare enum SpanStatus {
|
|
234
|
+
UNSET = 0,
|
|
235
|
+
OK = 1,
|
|
236
|
+
ERROR = 2
|
|
237
|
+
}
|
|
238
|
+
declare enum SpanKind {
|
|
239
|
+
INTERNAL = 0,
|
|
240
|
+
SERVER = 1,
|
|
241
|
+
CLIENT = 2,
|
|
242
|
+
PRODUCER = 3,
|
|
243
|
+
CONSUMER = 4
|
|
244
|
+
}
|
|
245
|
+
interface Span {
|
|
246
|
+
name: string;
|
|
247
|
+
traceId: string;
|
|
248
|
+
spanId: string;
|
|
249
|
+
parentSpanId?: string;
|
|
250
|
+
kind: SpanKind;
|
|
251
|
+
startTime: number;
|
|
252
|
+
endTime?: number;
|
|
253
|
+
status: SpanStatus;
|
|
254
|
+
attributes: SpanAttributes$1;
|
|
255
|
+
events: SpanEvent[];
|
|
256
|
+
isRecording: boolean;
|
|
257
|
+
setAttribute(key: string, value: string | number | boolean): Span;
|
|
258
|
+
setAttributes(attributes: SpanAttributes$1): Span;
|
|
259
|
+
setStatus(status: SpanStatus, message?: string): Span;
|
|
260
|
+
recordException(error: Error): Span;
|
|
261
|
+
addEvent(name: string, attributes?: SpanAttributes$1): Span;
|
|
262
|
+
end(): void;
|
|
263
|
+
getSpanContext(): SpanContext;
|
|
264
|
+
}
|
|
265
|
+
interface SpanEvent {
|
|
266
|
+
name: string;
|
|
267
|
+
timestamp: number;
|
|
268
|
+
attributes?: SpanAttributes$1;
|
|
269
|
+
}
|
|
270
|
+
declare class Tracer {
|
|
271
|
+
private serviceName;
|
|
272
|
+
private activeSpans;
|
|
273
|
+
private currentSpan;
|
|
274
|
+
private spanListeners;
|
|
275
|
+
constructor(serviceName: string);
|
|
276
|
+
isEnabled(): boolean;
|
|
277
|
+
startSpan(name: string, kind?: SpanKind, parentContext?: SpanContext): Span;
|
|
278
|
+
startSpanFromContext(context: OperationContext, kind?: SpanKind): Span;
|
|
279
|
+
getCurrentSpan(): Span | null;
|
|
280
|
+
getTraceContext(): TraceContext;
|
|
281
|
+
setCurrentSpan(span: Span): void;
|
|
282
|
+
withSpan<T>(name: string, fn: (span: Span) => Promise<T>, kind?: SpanKind, parentContext?: SpanContext): Promise<T>;
|
|
283
|
+
withSpanSync<T>(name: string, fn: (span: Span) => T, kind?: SpanKind, parentContext?: SpanContext): T;
|
|
284
|
+
addSpanListener(listener: (span: Span) => void): void;
|
|
285
|
+
removeSpanListener(listener: (span: Span) => void): void;
|
|
286
|
+
private onSpanEnd;
|
|
287
|
+
private logSpan;
|
|
288
|
+
getActiveSpanCount(): number;
|
|
289
|
+
clearActiveSpans(): void;
|
|
290
|
+
}
|
|
291
|
+
declare function initializeTracer(serviceName: string): Tracer;
|
|
292
|
+
declare function getTracer(): Tracer;
|
|
293
|
+
declare function isTracerInitialized(): boolean;
|
|
294
|
+
declare function startSpan(name: string, kind?: SpanKind, parentContext?: SpanContext): Span;
|
|
295
|
+
declare function withSpan<T>(name: string, fn: (span: Span) => Promise<T>, kind?: SpanKind): Promise<T>;
|
|
296
|
+
declare function getTraceContext(): TraceContext;
|
|
297
|
+
declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): SpanContext | undefined;
|
|
298
|
+
declare function injectTraceContext(headers: Record<string, string>, spanContext?: SpanContext): void;
|
|
299
|
+
|
|
300
|
+
interface PrometheusPluginOptions {
|
|
301
|
+
endpoint?: string | false;
|
|
302
|
+
skipIntrospection?: boolean;
|
|
303
|
+
httpDuration?: boolean;
|
|
304
|
+
requestDuration?: boolean;
|
|
305
|
+
requestCount?: boolean;
|
|
306
|
+
errorCount?: boolean;
|
|
307
|
+
resolverMetrics?: boolean;
|
|
308
|
+
instrumentResolvers?: string[];
|
|
309
|
+
deprecatedFields?: boolean;
|
|
310
|
+
parsePhase?: boolean;
|
|
311
|
+
validatePhase?: boolean;
|
|
312
|
+
contextPhase?: boolean;
|
|
313
|
+
executePhase?: boolean;
|
|
314
|
+
}
|
|
315
|
+
declare function createPrometheusPlugin(options?: PrometheusPluginOptions): unknown | null;
|
|
316
|
+
declare function isPrometheusAvailable(): boolean;
|
|
317
|
+
interface ApolloInlineTraceOptions {
|
|
318
|
+
includeFieldTraces?: boolean;
|
|
319
|
+
includeVariables?: boolean;
|
|
320
|
+
excludeOperations?: string[];
|
|
321
|
+
}
|
|
322
|
+
declare function createApolloInlineTracePlugin(_options?: ApolloInlineTraceOptions): unknown | null;
|
|
323
|
+
declare function isApolloInlineTraceAvailable(): boolean;
|
|
324
|
+
type GraphQLOperationType = 'query' | 'mutation' | 'subscription';
|
|
325
|
+
interface GraphQLOperationInfo {
|
|
326
|
+
operationType: GraphQLOperationType;
|
|
327
|
+
operationName: string | null;
|
|
328
|
+
document?: string;
|
|
329
|
+
variables?: Record<string, unknown>;
|
|
330
|
+
}
|
|
331
|
+
interface InstrumentationContextExtension {
|
|
332
|
+
_instrumentation?: {
|
|
333
|
+
span?: Span;
|
|
334
|
+
startTime?: number;
|
|
335
|
+
operationInfo?: GraphQLOperationInfo;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
declare function extractOperationInfo(args: {
|
|
339
|
+
document?: {
|
|
340
|
+
loc?: {
|
|
341
|
+
source?: {
|
|
342
|
+
body?: string;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
definitions?: unknown[];
|
|
346
|
+
};
|
|
347
|
+
operationName?: string | null;
|
|
348
|
+
variableValues?: Record<string, unknown>;
|
|
349
|
+
}): GraphQLOperationInfo;
|
|
350
|
+
declare function createGraphQLInstrumentationPlugin(): {
|
|
351
|
+
onExecute: (args: {
|
|
352
|
+
args: {
|
|
353
|
+
document?: unknown;
|
|
354
|
+
operationName?: string | null;
|
|
355
|
+
variableValues?: Record<string, unknown>;
|
|
356
|
+
contextValue?: unknown;
|
|
357
|
+
};
|
|
358
|
+
}) => {
|
|
359
|
+
onExecuteDone: (args: {
|
|
360
|
+
result: unknown;
|
|
361
|
+
setResult?: (result: unknown) => void;
|
|
362
|
+
}) => void;
|
|
363
|
+
} | undefined;
|
|
364
|
+
onSubscribe?: (args: {
|
|
365
|
+
args: unknown;
|
|
366
|
+
}) => void;
|
|
367
|
+
};
|
|
368
|
+
declare function instrumentResolver<TArgs extends unknown[], TResult>(name: string, resolver: (...args: TArgs) => Promise<TResult>, options?: {
|
|
369
|
+
includeArgs?: boolean;
|
|
370
|
+
includeResult?: boolean;
|
|
371
|
+
attributes?: Record<string, string | number | boolean>;
|
|
372
|
+
}): (...args: TArgs) => Promise<TResult>;
|
|
373
|
+
declare function instrumentResolverMap<T extends Record<string, Record<string, (...args: unknown[]) => Promise<unknown>>>>(resolverMap: T, options?: {
|
|
374
|
+
includeTypes?: string[];
|
|
375
|
+
excludeTypes?: string[];
|
|
376
|
+
excludeFields?: string[];
|
|
377
|
+
}): T;
|
|
378
|
+
declare function getGraphQLOperationFromContext(context: unknown): GraphQLOperationInfo | undefined;
|
|
379
|
+
declare function getGraphQLSpanFromContext(context: unknown): Span | undefined;
|
|
380
|
+
|
|
381
|
+
declare const ENV_VARS: {
|
|
382
|
+
readonly INSTRUMENTATION_ENABLED: "INSTRUMENTATION_ENABLED";
|
|
383
|
+
readonly INSTRUMENTATION_TRACING: "INSTRUMENTATION_TRACING";
|
|
384
|
+
readonly INSTRUMENTATION_METRICS: "INSTRUMENTATION_METRICS";
|
|
385
|
+
readonly INSTRUMENTATION_LOGGING: "INSTRUMENTATION_LOGGING";
|
|
386
|
+
readonly INSTRUMENTATION_GRAPHQL: "INSTRUMENTATION_GRAPHQL";
|
|
387
|
+
readonly INSTRUMENTATION_DATABASE: "INSTRUMENTATION_DATABASE";
|
|
388
|
+
readonly INSTRUMENTATION_HTTP: "INSTRUMENTATION_HTTP";
|
|
389
|
+
readonly INSTRUMENTATION_CACHE: "INSTRUMENTATION_CACHE";
|
|
390
|
+
readonly INSTRUMENTATION_EVENT_QUEUE: "INSTRUMENTATION_EVENT_QUEUE";
|
|
391
|
+
readonly OTEL_SERVICE_NAME: "OTEL_SERVICE_NAME";
|
|
392
|
+
readonly OTEL_SERVICE_VERSION: "OTEL_SERVICE_VERSION";
|
|
393
|
+
readonly OTEL_ENVIRONMENT: "OTEL_ENVIRONMENT";
|
|
394
|
+
readonly OTEL_EXPORTER_OTLP_ENDPOINT: "OTEL_EXPORTER_OTLP_ENDPOINT";
|
|
395
|
+
readonly OTEL_EXPORTER_TYPE: "OTEL_EXPORTER_TYPE";
|
|
396
|
+
readonly OTEL_SAMPLING_RATE: "OTEL_SAMPLING_RATE";
|
|
397
|
+
readonly OTEL_PROPAGATION_FORMAT: "OTEL_PROPAGATION_FORMAT";
|
|
398
|
+
readonly METRICS_EXPORTER_TYPE: "METRICS_EXPORTER_TYPE";
|
|
399
|
+
readonly METRICS_PROMETHEUS_ENDPOINT: "METRICS_PROMETHEUS_ENDPOINT";
|
|
400
|
+
readonly METRICS_PROMETHEUS_PORT: "METRICS_PROMETHEUS_PORT";
|
|
401
|
+
readonly METRICS_COLLECT_INTERVAL: "METRICS_COLLECT_INTERVAL";
|
|
402
|
+
readonly METRICS_DEFAULT_ENABLED: "METRICS_DEFAULT_ENABLED";
|
|
403
|
+
readonly METRICS_PREFIX: "METRICS_PREFIX";
|
|
404
|
+
readonly DB_INSTRUMENTATION_INCLUDE_STATEMENT: "DB_INSTRUMENTATION_INCLUDE_STATEMENT";
|
|
405
|
+
readonly DB_INSTRUMENTATION_SLOW_QUERY_THRESHOLD: "DB_INSTRUMENTATION_SLOW_QUERY_THRESHOLD";
|
|
406
|
+
readonly GRAPHQL_INSTRUMENTATION_INCLUDE_DOCUMENT: "GRAPHQL_INSTRUMENTATION_INCLUDE_DOCUMENT";
|
|
407
|
+
readonly GRAPHQL_INSTRUMENTATION_INCLUDE_VARIABLES: "GRAPHQL_INSTRUMENTATION_INCLUDE_VARIABLES";
|
|
408
|
+
readonly GRAPHQL_INSTRUMENTATION_INCLUDE_RESOLVERS: "GRAPHQL_INSTRUMENTATION_INCLUDE_RESOLVERS";
|
|
409
|
+
};
|
|
410
|
+
declare const DEFAULT_FEATURE_FLAGS: InstrumentationFeatureFlags;
|
|
411
|
+
declare const DEFAULT_TRACING_CONFIG: TracingConfig;
|
|
412
|
+
declare const DEFAULT_METRICS_CONFIG: MetricsConfig;
|
|
413
|
+
declare const DEFAULT_LOGGING_CONFIG: LoggingConfig;
|
|
414
|
+
declare const DEFAULT_GRAPHQL_CONFIG: GraphQLInstrumentationConfig;
|
|
415
|
+
declare const DEFAULT_DATABASE_CONFIG: DatabaseInstrumentationConfig;
|
|
416
|
+
declare const DEFAULT_HTTP_CONFIG: HTTPInstrumentationConfig;
|
|
417
|
+
declare const DEFAULT_CACHE_CONFIG: CacheInstrumentationConfig;
|
|
418
|
+
declare const DEFAULT_EVENT_QUEUE_CONFIG: EventQueueInstrumentationConfig;
|
|
419
|
+
declare function buildFeatureFlags(overrides?: Partial<InstrumentationFeatureFlags>): InstrumentationFeatureFlags;
|
|
420
|
+
declare function buildTracingConfig(serviceName: string, overrides?: Partial<TracingConfig>): TracingConfig;
|
|
421
|
+
declare function buildMetricsConfig(serviceName: string, overrides?: Partial<MetricsConfig>): MetricsConfig;
|
|
422
|
+
declare function buildDatabaseConfig(overrides?: Partial<DatabaseInstrumentationConfig>): DatabaseInstrumentationConfig;
|
|
423
|
+
declare function buildGraphQLConfig(overrides?: Partial<GraphQLInstrumentationConfig>): GraphQLInstrumentationConfig;
|
|
424
|
+
declare function buildInstrumentationConfig(serviceName: string, overrides?: Partial<InstrumentationConfig>): InstrumentationConfig;
|
|
425
|
+
declare function initializeInstrumentationConfig(serviceName: string, overrides?: Partial<InstrumentationConfig>): InstrumentationConfig;
|
|
426
|
+
declare function getInstrumentationConfig(): InstrumentationConfig;
|
|
427
|
+
declare function isInstrumentationConfigInitialized(): boolean;
|
|
428
|
+
declare function isFeatureEnabled(feature: keyof InstrumentationFeatureFlags): boolean;
|
|
429
|
+
declare function updateInstrumentationConfig(updates: Partial<InstrumentationConfig>): InstrumentationConfig;
|
|
430
|
+
declare function resetInstrumentationConfig(): void;
|
|
431
|
+
|
|
432
|
+
type SpanAttributes = Record<string, string | number | boolean>;
|
|
433
|
+
interface TraceOptions {
|
|
434
|
+
name?: string;
|
|
435
|
+
kind?: SpanKind;
|
|
436
|
+
attributes?: SpanAttributes;
|
|
437
|
+
includeArgs?: boolean;
|
|
438
|
+
includeResult?: boolean;
|
|
439
|
+
extractAttributes?: (args: unknown[]) => SpanAttributes;
|
|
440
|
+
skip?: boolean | ((args: unknown[]) => boolean);
|
|
441
|
+
}
|
|
442
|
+
interface MetricOptions {
|
|
443
|
+
name?: string;
|
|
444
|
+
labels?: MetricLabels | ((args: unknown[], result?: unknown) => MetricLabels);
|
|
445
|
+
recordCount?: boolean;
|
|
446
|
+
recordDuration?: boolean;
|
|
447
|
+
boundaries?: number[];
|
|
448
|
+
}
|
|
449
|
+
interface LogOptions {
|
|
450
|
+
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
451
|
+
includeArgs?: boolean;
|
|
452
|
+
includeResult?: boolean;
|
|
453
|
+
logEntry?: boolean;
|
|
454
|
+
logExit?: boolean;
|
|
455
|
+
logError?: boolean;
|
|
456
|
+
message?: string;
|
|
457
|
+
}
|
|
458
|
+
interface InstrumentOptions {
|
|
459
|
+
operationName?: string;
|
|
460
|
+
operationType?: string;
|
|
461
|
+
trace?: TraceOptions | boolean;
|
|
462
|
+
metrics?: MetricOptions | boolean;
|
|
463
|
+
log?: LogOptions | boolean;
|
|
464
|
+
skip?: boolean | ((args: unknown[]) => boolean);
|
|
465
|
+
}
|
|
466
|
+
declare function Trace(options?: TraceOptions): MethodDecorator;
|
|
467
|
+
declare function Metric(options?: MetricOptions): MethodDecorator;
|
|
468
|
+
declare function Log(options?: LogOptions): MethodDecorator;
|
|
469
|
+
declare function Instrument(options?: InstrumentOptions): MethodDecorator;
|
|
470
|
+
declare function traced<T extends (...args: unknown[]) => Promise<unknown>>(name: string, fn: T, options?: TraceOptions): T;
|
|
471
|
+
declare function instrumented<T extends (...args: unknown[]) => Promise<unknown>>(name: string, fn: T, options?: InstrumentOptions): T;
|
|
472
|
+
|
|
473
|
+
declare function getLogger(): Logger;
|
|
474
|
+
interface InitializeInstrumentationOptions {
|
|
475
|
+
features?: Partial<InstrumentationFeatureFlags>;
|
|
476
|
+
tracing?: Partial<TracingConfig>;
|
|
477
|
+
metrics?: Partial<MetricsConfig>;
|
|
478
|
+
logging?: Partial<LoggingConfig>;
|
|
479
|
+
graphql?: Partial<GraphQLInstrumentationConfig>;
|
|
480
|
+
database?: Partial<DatabaseInstrumentationConfig>;
|
|
481
|
+
http?: Partial<HTTPInstrumentationConfig>;
|
|
482
|
+
cache?: Partial<CacheInstrumentationConfig>;
|
|
483
|
+
eventQueue?: Partial<EventQueueInstrumentationConfig>;
|
|
484
|
+
}
|
|
485
|
+
declare function initializeInstrumentation(serviceName: string, options?: InitializeInstrumentationOptions): {
|
|
486
|
+
tracer: Tracer;
|
|
487
|
+
metrics: MetricsRegistry;
|
|
488
|
+
config: InstrumentationConfig;
|
|
489
|
+
};
|
|
490
|
+
declare function isInstrumentationInitialized(): boolean;
|
|
491
|
+
declare function resetInstrumentation(): void;
|
|
492
|
+
interface SetupInstrumentationOptions extends InitializeInstrumentationOptions {
|
|
493
|
+
useApolloInlineTrace?: boolean;
|
|
494
|
+
usePrometheus?: boolean;
|
|
495
|
+
prometheus?: PrometheusPluginOptions;
|
|
496
|
+
}
|
|
497
|
+
interface InstrumentationSetupResult {
|
|
498
|
+
tracer: Tracer;
|
|
499
|
+
metrics: MetricsRegistry;
|
|
500
|
+
config: InstrumentationConfig;
|
|
501
|
+
plugins: unknown[];
|
|
502
|
+
}
|
|
503
|
+
declare function setupInstrumentation(serviceName: string, options?: SetupInstrumentationOptions): InstrumentationSetupResult;
|
|
504
|
+
|
|
505
|
+
type index_ApolloInlineTraceOptions = ApolloInlineTraceOptions;
|
|
506
|
+
type index_CacheInstrumentationConfig = CacheInstrumentationConfig;
|
|
507
|
+
type index_Counter = Counter;
|
|
508
|
+
declare const index_DEFAULT_CACHE_CONFIG: typeof DEFAULT_CACHE_CONFIG;
|
|
509
|
+
declare const index_DEFAULT_DATABASE_CONFIG: typeof DEFAULT_DATABASE_CONFIG;
|
|
510
|
+
declare const index_DEFAULT_EVENT_QUEUE_CONFIG: typeof DEFAULT_EVENT_QUEUE_CONFIG;
|
|
511
|
+
declare const index_DEFAULT_FEATURE_FLAGS: typeof DEFAULT_FEATURE_FLAGS;
|
|
512
|
+
declare const index_DEFAULT_GRAPHQL_CONFIG: typeof DEFAULT_GRAPHQL_CONFIG;
|
|
513
|
+
declare const index_DEFAULT_HTTP_CONFIG: typeof DEFAULT_HTTP_CONFIG;
|
|
514
|
+
declare const index_DEFAULT_LOGGING_CONFIG: typeof DEFAULT_LOGGING_CONFIG;
|
|
515
|
+
declare const index_DEFAULT_METRICS_CONFIG: typeof DEFAULT_METRICS_CONFIG;
|
|
516
|
+
declare const index_DEFAULT_TRACING_CONFIG: typeof DEFAULT_TRACING_CONFIG;
|
|
517
|
+
type index_DatabaseInstrumentationConfig = DatabaseInstrumentationConfig;
|
|
518
|
+
declare const index_ENV_VARS: typeof ENV_VARS;
|
|
519
|
+
type index_EventQueueInstrumentationConfig = EventQueueInstrumentationConfig;
|
|
520
|
+
type index_Gauge = Gauge;
|
|
521
|
+
type index_GraphQLInstrumentationConfig = GraphQLInstrumentationConfig;
|
|
522
|
+
type index_GraphQLOperationInfo = GraphQLOperationInfo;
|
|
523
|
+
type index_GraphQLOperationType = GraphQLOperationType;
|
|
524
|
+
type index_HTTPInstrumentationConfig = HTTPInstrumentationConfig;
|
|
525
|
+
type index_Histogram = Histogram;
|
|
526
|
+
type index_InitializeInstrumentationOptions = InitializeInstrumentationOptions;
|
|
527
|
+
declare const index_Instrument: typeof Instrument;
|
|
528
|
+
type index_InstrumentationConfig = InstrumentationConfig;
|
|
529
|
+
type index_InstrumentationContextExtension = InstrumentationContextExtension;
|
|
530
|
+
type index_InstrumentationFeatureFlags = InstrumentationFeatureFlags;
|
|
531
|
+
type index_InstrumentationSetupResult = InstrumentationSetupResult;
|
|
532
|
+
declare const index_Log: typeof Log;
|
|
533
|
+
type index_LoggingConfig = LoggingConfig;
|
|
534
|
+
declare const index_Metric: typeof Metric;
|
|
535
|
+
type index_MetricDefinition = MetricDefinition;
|
|
536
|
+
type index_MetricLabels = MetricLabels;
|
|
537
|
+
type index_MetricsConfig = MetricsConfig;
|
|
538
|
+
type index_MetricsRegistry = MetricsRegistry;
|
|
539
|
+
declare const index_MetricsRegistry: typeof MetricsRegistry;
|
|
540
|
+
type index_OperationContext = OperationContext;
|
|
541
|
+
type index_PrometheusPluginOptions = PrometheusPluginOptions;
|
|
542
|
+
declare const index_STANDARD_METRICS: typeof STANDARD_METRICS;
|
|
543
|
+
type index_SetupInstrumentationOptions = SetupInstrumentationOptions;
|
|
544
|
+
type index_Span = Span;
|
|
545
|
+
type index_SpanContext = SpanContext;
|
|
546
|
+
type index_SpanEvent = SpanEvent;
|
|
547
|
+
type index_SpanKind = SpanKind;
|
|
548
|
+
declare const index_SpanKind: typeof SpanKind;
|
|
549
|
+
type index_SpanStatus = SpanStatus;
|
|
550
|
+
declare const index_SpanStatus: typeof SpanStatus;
|
|
551
|
+
declare const index_Trace: typeof Trace;
|
|
552
|
+
type index_TraceContext = TraceContext;
|
|
553
|
+
type index_Tracer = Tracer;
|
|
554
|
+
declare const index_Tracer: typeof Tracer;
|
|
555
|
+
type index_TracingConfig = TracingConfig;
|
|
556
|
+
type index_UpDownCounter = UpDownCounter;
|
|
557
|
+
declare const index_buildDatabaseConfig: typeof buildDatabaseConfig;
|
|
558
|
+
declare const index_buildFeatureFlags: typeof buildFeatureFlags;
|
|
559
|
+
declare const index_buildGraphQLConfig: typeof buildGraphQLConfig;
|
|
560
|
+
declare const index_buildInstrumentationConfig: typeof buildInstrumentationConfig;
|
|
561
|
+
declare const index_buildMetricsConfig: typeof buildMetricsConfig;
|
|
562
|
+
declare const index_buildTracingConfig: typeof buildTracingConfig;
|
|
563
|
+
declare const index_createApolloInlineTracePlugin: typeof createApolloInlineTracePlugin;
|
|
564
|
+
declare const index_createCounter: typeof createCounter;
|
|
565
|
+
declare const index_createGauge: typeof createGauge;
|
|
566
|
+
declare const index_createGraphQLInstrumentationPlugin: typeof createGraphQLInstrumentationPlugin;
|
|
567
|
+
declare const index_createHistogram: typeof createHistogram;
|
|
568
|
+
declare const index_createPrometheusPlugin: typeof createPrometheusPlugin;
|
|
569
|
+
declare const index_createUpDownCounter: typeof createUpDownCounter;
|
|
570
|
+
declare const index_extractOperationInfo: typeof extractOperationInfo;
|
|
571
|
+
declare const index_extractTraceContext: typeof extractTraceContext;
|
|
572
|
+
declare const index_getGraphQLOperationFromContext: typeof getGraphQLOperationFromContext;
|
|
573
|
+
declare const index_getGraphQLSpanFromContext: typeof getGraphQLSpanFromContext;
|
|
574
|
+
declare const index_getInstrumentationConfig: typeof getInstrumentationConfig;
|
|
575
|
+
declare const index_getLogger: typeof getLogger;
|
|
576
|
+
declare const index_getMetricsRegistry: typeof getMetricsRegistry;
|
|
577
|
+
declare const index_getTraceContext: typeof getTraceContext;
|
|
578
|
+
declare const index_getTracer: typeof getTracer;
|
|
579
|
+
declare const index_initializeInstrumentation: typeof initializeInstrumentation;
|
|
580
|
+
declare const index_initializeInstrumentationConfig: typeof initializeInstrumentationConfig;
|
|
581
|
+
declare const index_initializeMetricsRegistry: typeof initializeMetricsRegistry;
|
|
582
|
+
declare const index_initializeTracer: typeof initializeTracer;
|
|
583
|
+
declare const index_injectTraceContext: typeof injectTraceContext;
|
|
584
|
+
declare const index_instrumentResolver: typeof instrumentResolver;
|
|
585
|
+
declare const index_instrumentResolverMap: typeof instrumentResolverMap;
|
|
586
|
+
declare const index_instrumented: typeof instrumented;
|
|
587
|
+
declare const index_isApolloInlineTraceAvailable: typeof isApolloInlineTraceAvailable;
|
|
588
|
+
declare const index_isFeatureEnabled: typeof isFeatureEnabled;
|
|
589
|
+
declare const index_isInstrumentationConfigInitialized: typeof isInstrumentationConfigInitialized;
|
|
590
|
+
declare const index_isInstrumentationInitialized: typeof isInstrumentationInitialized;
|
|
591
|
+
declare const index_isMetricsRegistryInitialized: typeof isMetricsRegistryInitialized;
|
|
592
|
+
declare const index_isPrometheusAvailable: typeof isPrometheusAvailable;
|
|
593
|
+
declare const index_isTracerInitialized: typeof isTracerInitialized;
|
|
594
|
+
declare const index_logger: typeof logger;
|
|
595
|
+
declare const index_resetInstrumentation: typeof resetInstrumentation;
|
|
596
|
+
declare const index_resetInstrumentationConfig: typeof resetInstrumentationConfig;
|
|
597
|
+
declare const index_resetMetricsRegistry: typeof resetMetricsRegistry;
|
|
598
|
+
declare const index_setupInstrumentation: typeof setupInstrumentation;
|
|
599
|
+
declare const index_startSpan: typeof startSpan;
|
|
600
|
+
declare const index_traced: typeof traced;
|
|
601
|
+
declare const index_updateInstrumentationConfig: typeof updateInstrumentationConfig;
|
|
602
|
+
declare const index_withSpan: typeof withSpan;
|
|
603
|
+
declare namespace index {
|
|
604
|
+
export { type index_ApolloInlineTraceOptions as ApolloInlineTraceOptions, type index_CacheInstrumentationConfig as CacheInstrumentationConfig, type index_Counter as Counter, index_DEFAULT_CACHE_CONFIG as DEFAULT_CACHE_CONFIG, index_DEFAULT_DATABASE_CONFIG as DEFAULT_DATABASE_CONFIG, index_DEFAULT_EVENT_QUEUE_CONFIG as DEFAULT_EVENT_QUEUE_CONFIG, index_DEFAULT_FEATURE_FLAGS as DEFAULT_FEATURE_FLAGS, index_DEFAULT_GRAPHQL_CONFIG as DEFAULT_GRAPHQL_CONFIG, index_DEFAULT_HTTP_CONFIG as DEFAULT_HTTP_CONFIG, index_DEFAULT_LOGGING_CONFIG as DEFAULT_LOGGING_CONFIG, index_DEFAULT_METRICS_CONFIG as DEFAULT_METRICS_CONFIG, index_DEFAULT_TRACING_CONFIG as DEFAULT_TRACING_CONFIG, type index_DatabaseInstrumentationConfig as DatabaseInstrumentationConfig, index_ENV_VARS as ENV_VARS, type index_EventQueueInstrumentationConfig as EventQueueInstrumentationConfig, type index_Gauge as Gauge, type index_GraphQLInstrumentationConfig as GraphQLInstrumentationConfig, type index_GraphQLOperationInfo as GraphQLOperationInfo, type index_GraphQLOperationType as GraphQLOperationType, type index_HTTPInstrumentationConfig as HTTPInstrumentationConfig, type index_Histogram as Histogram, type index_InitializeInstrumentationOptions as InitializeInstrumentationOptions, index_Instrument as Instrument, type index_InstrumentationConfig as InstrumentationConfig, type index_InstrumentationContextExtension as InstrumentationContextExtension, type index_InstrumentationFeatureFlags as InstrumentationFeatureFlags, type index_InstrumentationSetupResult as InstrumentationSetupResult, index_Log as Log, type index_LoggingConfig as LoggingConfig, index_Metric as Metric, type index_MetricDefinition as MetricDefinition, type index_MetricLabels as MetricLabels, type index_MetricsConfig as MetricsConfig, index_MetricsRegistry as MetricsRegistry, type index_OperationContext as OperationContext, type index_PrometheusPluginOptions as PrometheusPluginOptions, index_STANDARD_METRICS as STANDARD_METRICS, type index_SetupInstrumentationOptions as SetupInstrumentationOptions, type index_Span as Span, type SpanAttributes$1 as SpanAttributes, type index_SpanContext as SpanContext, type index_SpanEvent as SpanEvent, index_SpanKind as SpanKind, index_SpanStatus as SpanStatus, index_Trace as Trace, type index_TraceContext as TraceContext, index_Tracer as Tracer, type index_TracingConfig as TracingConfig, type index_UpDownCounter as UpDownCounter, index_buildDatabaseConfig as buildDatabaseConfig, index_buildFeatureFlags as buildFeatureFlags, index_buildGraphQLConfig as buildGraphQLConfig, index_buildInstrumentationConfig as buildInstrumentationConfig, index_buildMetricsConfig as buildMetricsConfig, index_buildTracingConfig as buildTracingConfig, index_createApolloInlineTracePlugin as createApolloInlineTracePlugin, index_createCounter as createCounter, index_createGauge as createGauge, index_createGraphQLInstrumentationPlugin as createGraphQLInstrumentationPlugin, index_createHistogram as createHistogram, index_createPrometheusPlugin as createPrometheusPlugin, index_createUpDownCounter as createUpDownCounter, index_extractOperationInfo as extractOperationInfo, index_extractTraceContext as extractTraceContext, index_getGraphQLOperationFromContext as getGraphQLOperationFromContext, index_getGraphQLSpanFromContext as getGraphQLSpanFromContext, index_getInstrumentationConfig as getInstrumentationConfig, index_getLogger as getLogger, index_getMetricsRegistry as getMetricsRegistry, index_getTraceContext as getTraceContext, index_getTracer as getTracer, index_initializeInstrumentation as initializeInstrumentation, index_initializeInstrumentationConfig as initializeInstrumentationConfig, index_initializeMetricsRegistry as initializeMetricsRegistry, index_initializeTracer as initializeTracer, index_injectTraceContext as injectTraceContext, index_instrumentResolver as instrumentResolver, index_instrumentResolverMap as instrumentResolverMap, index_instrumented as instrumented, index_isApolloInlineTraceAvailable as isApolloInlineTraceAvailable, index_isFeatureEnabled as isFeatureEnabled, index_isInstrumentationConfigInitialized as isInstrumentationConfigInitialized, index_isInstrumentationInitialized as isInstrumentationInitialized, index_isMetricsRegistryInitialized as isMetricsRegistryInitialized, index_isPrometheusAvailable as isPrometheusAvailable, index_isTracerInitialized as isTracerInitialized, index_logger as logger, index_resetInstrumentation as resetInstrumentation, index_resetInstrumentationConfig as resetInstrumentationConfig, index_resetMetricsRegistry as resetMetricsRegistry, index_setupInstrumentation as setupInstrumentation, index_startSpan as startSpan, index_traced as traced, index_updateInstrumentationConfig as updateInstrumentationConfig, index_withSpan as withSpan };
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export { buildFeatureFlags as $, type ApolloInlineTraceOptions as A, type MetricsConfig as B, type CacheInstrumentationConfig as C, DEFAULT_CACHE_CONFIG as D, ENV_VARS as E, MetricsRegistry as F, type Gauge as G, type HTTPInstrumentationConfig as H, type InstrumentationSetupResult as I, STANDARD_METRICS as J, type Span as K, Log as L, Metric as M, type SpanAttributes$1 as N, type OperationContext as O, type PrometheusPluginOptions as P, type SpanContext as Q, type SpanEvent as R, type SetupInstrumentationOptions as S, SpanKind as T, SpanStatus as U, Trace as V, type TraceContext as W, Tracer as X, type TracingConfig as Y, type UpDownCounter as Z, buildDatabaseConfig as _, index as a, buildGraphQLConfig as a0, buildInstrumentationConfig as a1, buildMetricsConfig as a2, buildTracingConfig as a3, createApolloInlineTracePlugin as a4, createCounter as a5, createGauge as a6, createGraphQLInstrumentationPlugin as a7, createHistogram as a8, createPrometheusPlugin as a9, resetMetricsRegistry as aA, startSpan as aB, traced as aC, updateInstrumentationConfig as aD, withSpan as aE, createUpDownCounter as aa, extractOperationInfo as ab, extractTraceContext as ac, getGraphQLOperationFromContext as ad, getGraphQLSpanFromContext as ae, getInstrumentationConfig as af, getLogger as ag, getMetricsRegistry as ah, getTraceContext as ai, getTracer as aj, initializeInstrumentationConfig as ak, initializeMetricsRegistry as al, initializeTracer as am, injectTraceContext as an, instrumentResolver as ao, instrumentResolverMap as ap, instrumented as aq, isApolloInlineTraceAvailable as ar, isFeatureEnabled as as, isInstrumentationConfigInitialized as at, isInstrumentationInitialized as au, isMetricsRegistryInitialized as av, isPrometheusAvailable as aw, isTracerInitialized as ax, resetInstrumentation as ay, resetInstrumentationConfig as az, type Counter as b, DEFAULT_DATABASE_CONFIG as c, DEFAULT_EVENT_QUEUE_CONFIG as d, DEFAULT_FEATURE_FLAGS as e, DEFAULT_GRAPHQL_CONFIG as f, DEFAULT_HTTP_CONFIG as g, DEFAULT_LOGGING_CONFIG as h, initializeInstrumentation as i, DEFAULT_METRICS_CONFIG as j, DEFAULT_TRACING_CONFIG as k, type DatabaseInstrumentationConfig as l, type EventQueueInstrumentationConfig as m, type GraphQLInstrumentationConfig as n, type GraphQLOperationInfo as o, type GraphQLOperationType as p, type Histogram as q, type InitializeInstrumentationOptions as r, setupInstrumentation as s, Instrument as t, type InstrumentationConfig as u, type InstrumentationContextExtension as v, type InstrumentationFeatureFlags as w, type LoggingConfig as x, type MetricDefinition as y, type MetricLabels as z };
|