@visulima/pail 4.0.0-alpha.11 → 4.0.0-alpha.13
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/CHANGELOG.md +33 -0
- package/LICENSE.md +131 -900
- package/dist/error.d.ts +95 -96
- package/dist/error.js +5 -76
- package/dist/index.browser.d.ts +557 -47
- package/dist/index.browser.js +19 -1499
- package/dist/index.server.d.ts +722 -61
- package/dist/index.server.js +31 -2803
- package/dist/middleware/elysia.d.ts +65 -63
- package/dist/middleware/elysia.js +1 -70
- package/dist/middleware/express.d.ts +73 -71
- package/dist/middleware/express.js +1 -29
- package/dist/middleware/fastify.d.ts +69 -67
- package/dist/middleware/fastify.js +1 -46
- package/dist/middleware/hono.d.ts +74 -72
- package/dist/middleware/hono.js +1 -33
- package/dist/middleware/next/handler.d.ts +101 -34
- package/dist/middleware/next/handler.js +1 -53
- package/dist/middleware/sveltekit.d.ts +100 -98
- package/dist/middleware/sveltekit.js +1 -43
- package/dist/object-tree.d.ts +67 -70
- package/dist/object-tree.js +2 -89
- package/dist/packem_shared/AbstractJsonReporter-BawNFYxI.js +1 -0
- package/dist/packem_shared/AbstractJsonReporter-Dt5-5x2R.js +1 -0
- package/dist/packem_shared/JsonReporter-15ln04rX.js +2 -0
- package/dist/packem_shared/JsonReporter-CerNvhg-.js +1 -0
- package/dist/packem_shared/PrettyReporter-Br5njEEy.js +5 -0
- package/dist/packem_shared/PrettyReporter-CgXnwIip.js +44 -0
- package/dist/packem_shared/abstract-json-reporter.d-Bz3lZEDi.d.ts +61 -0
- package/dist/packem_shared/abstract-pretty-reporter-BiHgKxG_.js +33 -0
- package/dist/packem_shared/constants-DKfCaSUR.js +1 -0
- package/dist/packem_shared/constants-ep2nsfdy.js +1 -0
- package/dist/packem_shared/create-middleware-logger.d-DeNLii5l.d.ts +47 -0
- package/dist/packem_shared/createPailError-53jAfQ-T.js +5 -0
- package/dist/packem_shared/headers-S8WyX-2m.js +1 -0
- package/dist/packem_shared/index-Bzp4LnJ5.js +1 -0
- package/dist/packem_shared/pailMiddleware-CWOJRmJq.js +1 -0
- package/dist/packem_shared/storage-DHM1EP2P.js +1 -0
- package/dist/packem_shared/types.d-ByY2ZuYG.d.ts +246 -0
- package/dist/packem_shared/types.d-C51XNfQz.d.ts +194 -0
- package/dist/packem_shared/types.d-CM5ie2qm.d.ts +236 -0
- package/dist/packem_shared/useLogger-qyZrjy4D.js +1 -0
- package/dist/packem_shared/wide-event.d-Ke44zirU.d.ts +704 -0
- package/dist/packem_shared/write-console-log-based-on-level-DfD64owL.js +1 -0
- package/dist/packem_shared/write-stream-Dd4_PTcm.js +1 -0
- package/dist/processor/caller/caller-processor.d.ts +49 -47
- package/dist/processor/caller/caller-processor.js +1 -59
- package/dist/processor/environment-processor.d.ts +113 -113
- package/dist/processor/environment-processor.js +1 -89
- package/dist/processor/message-formatter-processor.d.ts +51 -49
- package/dist/processor/message-formatter-processor.js +1 -715
- package/dist/processor/opentelemetry-processor.d.ts +69 -66
- package/dist/processor/opentelemetry-processor.js +1 -52
- package/dist/processor/redact-processor.d.ts +60 -41
- package/dist/processor/redact-processor.js +1 -31
- package/dist/processor/sampling-processor.d.ts +102 -101
- package/dist/processor/sampling-processor.js +1 -59
- package/dist/reporter/file/json-file-reporter.d.ts +91 -42
- package/dist/reporter/file/json-file-reporter.js +2 -136
- package/dist/reporter/http/abstract-http-reporter.d.ts +213 -211
- package/dist/reporter/http/abstract-http-reporter.js +2 -432
- package/dist/reporter/http/http-reporter.d.ts +40 -36
- package/dist/reporter/http/http-reporter.edge-light.d.ts +430 -38
- package/dist/reporter/http/http-reporter.edge-light.js +2 -728
- package/dist/reporter/http/http-reporter.js +1 -13
- package/dist/reporter/json/index.browser.d.ts +99 -3
- package/dist/reporter/json/index.browser.js +1 -2
- package/dist/reporter/json/index.d.ts +51 -3
- package/dist/reporter/json/index.js +1 -2
- package/dist/reporter/pretty/index.browser.d.ts +106 -2
- package/dist/reporter/pretty/index.browser.js +1 -1
- package/dist/reporter/pretty/index.d.ts +186 -2
- package/dist/reporter/pretty/index.js +1 -1
- package/dist/reporter/simple/simple-reporter.server.d.ts +168 -18
- package/dist/reporter/simple/simple-reporter.server.js +8 -182
- package/dist/wide-event.d.ts +5 -300
- package/dist/wide-event.js +1 -284
- package/package.json +29 -30
- package/dist/constants.d.ts +0 -37
- package/dist/middleware/next/middleware.d.ts +0 -59
- package/dist/middleware/next/storage.d.ts +0 -14
- package/dist/middleware/shared/create-middleware-logger.d.ts +0 -82
- package/dist/middleware/shared/headers.d.ts +0 -14
- package/dist/middleware/shared/routes.d.ts +0 -30
- package/dist/middleware/shared/storage.d.ts +0 -29
- package/dist/packem_shared/AbstractJsonReporter-BO8Calb4.js +0 -284
- package/dist/packem_shared/AbstractJsonReporter-nOj0Ft1F.js +0 -284
- package/dist/packem_shared/JsonReporter-CCmj7oYL.js +0 -28
- package/dist/packem_shared/JsonReporter-Ck2PIAEw.js +0 -58
- package/dist/packem_shared/PrettyReporter-BCvyNzXO.js +0 -2720
- package/dist/packem_shared/PrettyReporter-BtTr13Ha.js +0 -213
- package/dist/packem_shared/abstract-pretty-reporter-CXAKYCb8.js +0 -2635
- package/dist/packem_shared/constants-B1RjD_ps.js +0 -99
- package/dist/packem_shared/constants-omsTHUWB.js +0 -119
- package/dist/packem_shared/createPailError-B_sgL0nF.js +0 -76
- package/dist/packem_shared/headers-BxHWM6KI.js +0 -127
- package/dist/packem_shared/index-Bx3-C0j9.js +0 -658
- package/dist/packem_shared/pailMiddleware-Ci88geIF.js +0 -24
- package/dist/packem_shared/storage-D0vqz8OX.js +0 -36
- package/dist/packem_shared/useLogger-D0rU3lcX.js +0 -33
- package/dist/packem_shared/write-console-log-based-on-level-ree2lDPw.js +0 -15
- package/dist/packem_shared/write-stream-MDqyXmc_.js +0 -6
- package/dist/pail.browser.d.ts +0 -412
- package/dist/pail.server.d.ts +0 -158
- package/dist/processor/caller/get-caller-filename.d.ts +0 -23
- package/dist/reporter/file/utils/rotating-file-stream.d.ts +0 -48
- package/dist/reporter/http/utils/compression.d.ts +0 -7
- package/dist/reporter/http/utils/log-size-error.d.ts +0 -30
- package/dist/reporter/http/utils/retry.d.ts +0 -27
- package/dist/reporter/json/abstract-json-reporter.d.ts +0 -61
- package/dist/reporter/json/json-reporter.browser.d.ts +0 -40
- package/dist/reporter/json/json-reporter.server.d.ts +0 -50
- package/dist/reporter/pretty/abstract-pretty-reporter.d.ts +0 -83
- package/dist/reporter/pretty/pretty-reporter.browser.d.ts +0 -36
- package/dist/reporter/pretty/pretty-reporter.server.d.ts +0 -70
- package/dist/reporter/raw/raw-reporter.browser.d.ts +0 -5
- package/dist/reporter/raw/raw-reporter.server.d.ts +0 -13
- package/dist/reporter/utils/default-inspector-config.d.ts +0 -3
- package/dist/reporter/utils/format-label.d.ts +0 -3
- package/dist/types.d.ts +0 -241
- package/dist/utils/arrayify.d.ts +0 -2
- package/dist/utils/get-longest-badge.d.ts +0 -4
- package/dist/utils/get-longest-label.d.ts +0 -4
- package/dist/utils/merge-types.d.ts +0 -4
- package/dist/utils/stream/safe-stream-handler.d.ts +0 -21
- package/dist/utils/write-console-log-based-on-level.d.ts +0 -4
- package/dist/utils/write-stream.d.ts +0 -2
|
@@ -1,215 +1,217 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { E as ExtendedRfc5424LogLevels, L as LiteralUnion, S as StringifyAwareReporter } from "../../packem_shared/types.d-ByY2ZuYG.js";
|
|
2
|
+
import { A as AbstractJsonReporterOptions, a as AbstractJsonReporter } from "../../packem_shared/abstract-json-reporter.d-Bz3lZEDi.js";
|
|
3
|
+
import '@visulima/colorize';
|
|
4
|
+
import '@visulima/interactive-manager';
|
|
5
|
+
import 'safe-stable-stringify';
|
|
5
6
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
7
|
+
* Configuration options for the HTTP reporter.
|
|
8
|
+
*/
|
|
9
|
+
type AbstractHttpReporterOptions = AbstractJsonReporterOptions & {
|
|
10
|
+
/**
|
|
11
|
+
* Content type for batch log requests. User-specified headers take precedence.
|
|
12
|
+
* @default "application/json"
|
|
13
|
+
*/
|
|
14
|
+
batchContentType?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Field name to wrap batch entries in when batchMode is "field" (e.g., "batch" for Logflare)
|
|
17
|
+
* @default undefined
|
|
18
|
+
*/
|
|
19
|
+
batchFieldName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Batch mode for sending multiple log entries
|
|
22
|
+
* - "delimiter": Join entries with a delimiter (default)
|
|
23
|
+
* - "field": Wrap entries in an object with a field name
|
|
24
|
+
* - "array": Send entries as a plain JSON array
|
|
25
|
+
* @default "delimiter"
|
|
26
|
+
*/
|
|
27
|
+
batchMode?: "delimiter" | "field" | "array";
|
|
28
|
+
/**
|
|
29
|
+
* Delimiter to use between log entries in batch mode
|
|
30
|
+
* @default "\n"
|
|
31
|
+
*/
|
|
32
|
+
batchSendDelimiter?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Timeout in milliseconds for sending batches regardless of size
|
|
35
|
+
* @default 5000
|
|
36
|
+
*/
|
|
37
|
+
batchSendTimeout?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Number of log entries to batch before sending
|
|
40
|
+
* @default 100
|
|
41
|
+
*/
|
|
42
|
+
batchSize?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to use gzip compression
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
compression?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Content type for single log requests. User-specified headers take precedence.
|
|
50
|
+
* @default "application/json"
|
|
51
|
+
*/
|
|
52
|
+
contentType?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Whether to enable Edge Runtime compatibility mode
|
|
55
|
+
* When enabled, TextEncoder and compression are disabled
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
edgeCompat?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether to enable batch sending
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
enableBatchSend?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Headers to include in the request. Can be an object or a function that returns headers.
|
|
66
|
+
*/
|
|
67
|
+
headers?: Record<string, string> | (() => Record<string, string>);
|
|
68
|
+
/**
|
|
69
|
+
* Maximum size of a single log entry in bytes
|
|
70
|
+
* @default 1048576 (1MB)
|
|
71
|
+
*/
|
|
72
|
+
maxLogSize?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Maximum size of the payload (uncompressed) in bytes
|
|
75
|
+
* @default 5242880 (5MB)
|
|
76
|
+
*/
|
|
77
|
+
maxPayloadSize?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Number of retry attempts before giving up
|
|
80
|
+
* @default 3
|
|
81
|
+
*/
|
|
82
|
+
maxRetries?: number;
|
|
83
|
+
/**
|
|
84
|
+
* HTTP method to use for requests
|
|
85
|
+
* @default "POST"
|
|
86
|
+
*/
|
|
87
|
+
method?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Optional callback for debugging log entries before they are sent
|
|
90
|
+
*/
|
|
91
|
+
onDebug?: (entry: Record<string, unknown>) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Optional callback for debugging HTTP requests and responses
|
|
94
|
+
*/
|
|
95
|
+
onDebugRequestResponse?: (requestResponse: {
|
|
96
|
+
req: {
|
|
97
|
+
body: string | Uint8Array;
|
|
98
|
+
headers: Record<string, string>;
|
|
99
|
+
method: string;
|
|
100
|
+
url: string;
|
|
101
|
+
};
|
|
102
|
+
res: {
|
|
103
|
+
body: string;
|
|
104
|
+
headers: Record<string, string>;
|
|
105
|
+
status: number;
|
|
106
|
+
statusText: string;
|
|
107
|
+
};
|
|
108
|
+
}) => void;
|
|
109
|
+
/**
|
|
110
|
+
* Optional callback for error handling
|
|
111
|
+
*/
|
|
112
|
+
onError?: (error: Error) => void;
|
|
113
|
+
/**
|
|
114
|
+
* Function to transform log data into the payload format.
|
|
115
|
+
* By default, uses the JSON stringified log entry.
|
|
116
|
+
*/
|
|
117
|
+
payloadTemplate?: (data: {
|
|
118
|
+
data?: Record<string, unknown>;
|
|
119
|
+
logLevel: string;
|
|
120
|
+
message: string;
|
|
121
|
+
}) => string;
|
|
122
|
+
/**
|
|
123
|
+
* Whether to respect rate limiting by waiting when a 429 response is received
|
|
124
|
+
* @default true
|
|
125
|
+
*/
|
|
126
|
+
respectRateLimit?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Base delay between retries in milliseconds
|
|
129
|
+
* @default 1000
|
|
130
|
+
*/
|
|
131
|
+
retryDelay?: number;
|
|
132
|
+
/**
|
|
133
|
+
* The URL to send logs to
|
|
134
|
+
*/
|
|
135
|
+
url: string;
|
|
135
136
|
};
|
|
136
137
|
/**
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
138
|
+
* Abstract HTTP Reporter.
|
|
139
|
+
*
|
|
140
|
+
* Base class for HTTP-based reporters that sends logs to HTTP endpoints.
|
|
141
|
+
* Supports batching, compression, retries, and rate limiting.
|
|
142
|
+
* @template L - The log level type
|
|
143
|
+
*/
|
|
144
|
+
declare abstract class AbstractHttpReporter<L extends string = string> extends AbstractJsonReporter<L> implements StringifyAwareReporter<L> {
|
|
145
|
+
protected url: string;
|
|
146
|
+
protected method: string;
|
|
147
|
+
protected headers: Record<string, string> | (() => Record<string, string>);
|
|
148
|
+
protected contentType: string;
|
|
149
|
+
protected batchContentType: string;
|
|
150
|
+
protected onError?: (error: Error) => void;
|
|
151
|
+
protected onDebug?: (entry: Record<string, unknown>) => void;
|
|
152
|
+
protected onDebugRequestResponse?: (requestResponse: {
|
|
153
|
+
req: {
|
|
154
|
+
body: string | Uint8Array;
|
|
155
|
+
headers: Record<string, string>;
|
|
156
|
+
method: string;
|
|
157
|
+
url: string;
|
|
158
|
+
};
|
|
159
|
+
res: {
|
|
160
|
+
body: string;
|
|
161
|
+
headers: Record<string, string>;
|
|
162
|
+
status: number;
|
|
163
|
+
statusText: string;
|
|
164
|
+
};
|
|
165
|
+
}) => void;
|
|
166
|
+
protected payloadTemplate: (data: {
|
|
167
|
+
data?: Record<string, unknown>;
|
|
168
|
+
logLevel: string;
|
|
169
|
+
message: string;
|
|
170
|
+
}) => string;
|
|
171
|
+
protected compression: boolean;
|
|
172
|
+
protected maxRetries: number;
|
|
173
|
+
protected retryDelay: number;
|
|
174
|
+
protected respectRateLimit: boolean;
|
|
175
|
+
protected enableBatchSend: boolean;
|
|
176
|
+
protected batchSize: number;
|
|
177
|
+
protected batchSendTimeout: number;
|
|
178
|
+
protected batchSendDelimiter: string;
|
|
179
|
+
protected batchMode: "delimiter" | "field" | "array";
|
|
180
|
+
protected batchFieldName?: string;
|
|
181
|
+
protected maxLogSize: number;
|
|
182
|
+
protected maxPayloadSize: number;
|
|
183
|
+
protected edgeCompat: boolean;
|
|
184
|
+
protected batchQueue: string[];
|
|
185
|
+
protected batchTimeout?: ReturnType<typeof setTimeout>;
|
|
186
|
+
protected isProcessingBatch: boolean;
|
|
187
|
+
protected currentBatchSize: number;
|
|
188
|
+
/**
|
|
189
|
+
* Creates a new instance of AbstractHttpReporter.
|
|
190
|
+
* @param config Configuration options for the reporter
|
|
191
|
+
*/
|
|
192
|
+
constructor(config: AbstractHttpReporterOptions);
|
|
193
|
+
/**
|
|
194
|
+
* Processes and ships log entries to the HTTP endpoint.
|
|
195
|
+
* @param message The JSON-formatted log message
|
|
196
|
+
* @param logLevel The log level of the message
|
|
197
|
+
* @protected
|
|
198
|
+
*/
|
|
199
|
+
protected override _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
|
|
200
|
+
/**
|
|
201
|
+
* Adds a payload to the batch queue and triggers sending if conditions are met.
|
|
202
|
+
*/
|
|
203
|
+
protected addToBatch(payload: string, logEntrySize: number): void;
|
|
204
|
+
/**
|
|
205
|
+
* Processes the current batch and sends it to the HTTP endpoint.
|
|
206
|
+
*/
|
|
207
|
+
protected processBatch(): Promise<void>;
|
|
208
|
+
/**
|
|
209
|
+
* Sends a batch of payloads to the HTTP endpoint.
|
|
210
|
+
*/
|
|
211
|
+
protected sendBatch(batch: string[]): Promise<void>;
|
|
212
|
+
/**
|
|
213
|
+
* Sends a single payload to the HTTP endpoint.
|
|
214
|
+
*/
|
|
215
|
+
protected sendPayload(payload: string, contentType?: string): Promise<void>;
|
|
215
216
|
}
|
|
217
|
+
export { AbstractHttpReporter, AbstractHttpReporterOptions };
|