@stainlessdev/xray-core 0.3.0 → 0.3.1-branch.bg-visibility.8b15a0a

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.
@@ -1,13 +1,8 @@
1
1
  interface ExporterConfig {
2
- enabled: boolean;
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' | 'INVALID_EXPORTER' | 'INVALID_REDACTION';
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
- enabled: boolean;
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' | 'INVALID_EXPORTER' | 'INVALID_REDACTION';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainlessdev/xray-core",
3
- "version": "0.3.0",
3
+ "version": "0.3.1-branch.bg-visibility.8b15a0a",
4
4
  "description": "Core instrumentation for Stainless X-ray request logging",
5
5
  "files": [
6
6
  "dist"