@stainlessdev/xray-core 0.3.0 → 0.3.1-dev.ae29cd0
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/dist/{chunk-SQHI5JZH.js → chunk-XI5E6C7G.js} +2 -1
- package/dist/index.cjs +115 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +96 -41
- package/dist/index.js.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/{types-D3Vzw_TA.d.cts → types-f9NNWwCi.d.cts} +2 -7
- package/dist/{types-D3Vzw_TA.d.ts → types-f9NNWwCi.d.ts} +2 -7
- package/package.json +1 -1
- /package/dist/{chunk-SQHI5JZH.js.map → chunk-XI5E6C7G.js.map} +0 -0
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
interface ExporterConfig {
|
|
2
|
-
|
|
3
|
-
endpointUrl?: string;
|
|
2
|
+
endpointUrl: string;
|
|
4
3
|
headers?: Record<string, string>;
|
|
5
4
|
timeoutMs: number;
|
|
6
5
|
spanProcessor: 'simple' | 'batch';
|
|
7
|
-
sampler: {
|
|
8
|
-
type: 'always_on' | 'always_off' | 'ratio';
|
|
9
|
-
ratio?: number;
|
|
10
|
-
};
|
|
11
6
|
}
|
|
12
7
|
interface CaptureConfig {
|
|
13
8
|
requestHeaders: boolean;
|
|
@@ -56,7 +51,7 @@ interface ResolvedXrayConfig {
|
|
|
56
51
|
route: RouteConfig;
|
|
57
52
|
}
|
|
58
53
|
declare class XrayConfigError extends Error {
|
|
59
|
-
code: 'INVALID_CONFIG' | '
|
|
54
|
+
code: 'INVALID_CONFIG' | 'INVALID_REDACTION';
|
|
60
55
|
constructor(code: XrayConfigError['code'], message: string);
|
|
61
56
|
}
|
|
62
57
|
declare function normalizeConfig(config: XrayConfig): ResolvedXrayConfig;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
interface ExporterConfig {
|
|
2
|
-
|
|
3
|
-
endpointUrl?: string;
|
|
2
|
+
endpointUrl: string;
|
|
4
3
|
headers?: Record<string, string>;
|
|
5
4
|
timeoutMs: number;
|
|
6
5
|
spanProcessor: 'simple' | 'batch';
|
|
7
|
-
sampler: {
|
|
8
|
-
type: 'always_on' | 'always_off' | 'ratio';
|
|
9
|
-
ratio?: number;
|
|
10
|
-
};
|
|
11
6
|
}
|
|
12
7
|
interface CaptureConfig {
|
|
13
8
|
requestHeaders: boolean;
|
|
@@ -56,7 +51,7 @@ interface ResolvedXrayConfig {
|
|
|
56
51
|
route: RouteConfig;
|
|
57
52
|
}
|
|
58
53
|
declare class XrayConfigError extends Error {
|
|
59
|
-
code: 'INVALID_CONFIG' | '
|
|
54
|
+
code: 'INVALID_CONFIG' | 'INVALID_REDACTION';
|
|
60
55
|
constructor(code: XrayConfigError['code'], message: string);
|
|
61
56
|
}
|
|
62
57
|
declare function normalizeConfig(config: XrayConfig): ResolvedXrayConfig;
|
package/package.json
CHANGED
|
File without changes
|