tracebeam-sdk 0.1.1 → 0.2.0
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/index.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +735 -377
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +722 -376
- package/dist/index.mjs.map +1 -1
- package/dist/integrations/express.d.mts +26 -2
- package/dist/integrations/express.d.ts +26 -2
- package/dist/integrations/express.js +30 -0
- package/dist/integrations/express.js.map +1 -1
- package/dist/integrations/express.mjs +29 -0
- package/dist/integrations/express.mjs.map +1 -1
- package/dist/integrations/fastify.d.mts +1 -1
- package/dist/integrations/fastify.d.ts +1 -1
- package/dist/integrations/fastify.js.map +1 -1
- package/dist/integrations/fastify.mjs.map +1 -1
- package/dist/{client-CaHega3m.d.mts → sdk-bh44OWR9.d.mts} +11 -80
- package/dist/{client-CaHega3m.d.ts → sdk-bh44OWR9.d.ts} +11 -80
- package/package.json +12 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TraceBeamConfig } from './
|
|
2
|
-
export { C as CaptureOptions,
|
|
1
|
+
import { T as TraceBeamConfig } from './sdk-bh44OWR9.mjs';
|
|
2
|
+
export { C as CaptureOptions, d as Event, e as EventBatch, E as EventLevel, c as Extra, b as Tags, a as TraceBeamSDK, g as TransportErrorResponse, h as TransportResponse, f as TransportSuccessResponse } from './sdk-bh44OWR9.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Default configuration values
|
|
@@ -24,5 +24,13 @@ declare class ConfigError extends Error {
|
|
|
24
24
|
* Load configuration from environment variables
|
|
25
25
|
*/
|
|
26
26
|
declare function loadConfigFromEnv(): TraceBeamConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Merge user config with defaults
|
|
29
|
+
*/
|
|
30
|
+
declare function mergeConfig(config: TraceBeamConfig): Required<TraceBeamConfig>;
|
|
31
|
+
/**
|
|
32
|
+
* Validate configuration
|
|
33
|
+
*/
|
|
34
|
+
declare function validateConfig(config: TraceBeamConfig): void;
|
|
27
35
|
|
|
28
|
-
export { ConfigError, DEFAULT_CONFIG, TraceBeamConfig, loadConfigFromEnv };
|
|
36
|
+
export { ConfigError, DEFAULT_CONFIG, TraceBeamConfig, loadConfigFromEnv, mergeConfig, validateConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TraceBeamConfig } from './
|
|
2
|
-
export { C as CaptureOptions,
|
|
1
|
+
import { T as TraceBeamConfig } from './sdk-bh44OWR9.js';
|
|
2
|
+
export { C as CaptureOptions, d as Event, e as EventBatch, E as EventLevel, c as Extra, b as Tags, a as TraceBeamSDK, g as TransportErrorResponse, h as TransportResponse, f as TransportSuccessResponse } from './sdk-bh44OWR9.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Default configuration values
|
|
@@ -24,5 +24,13 @@ declare class ConfigError extends Error {
|
|
|
24
24
|
* Load configuration from environment variables
|
|
25
25
|
*/
|
|
26
26
|
declare function loadConfigFromEnv(): TraceBeamConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Merge user config with defaults
|
|
29
|
+
*/
|
|
30
|
+
declare function mergeConfig(config: TraceBeamConfig): Required<TraceBeamConfig>;
|
|
31
|
+
/**
|
|
32
|
+
* Validate configuration
|
|
33
|
+
*/
|
|
34
|
+
declare function validateConfig(config: TraceBeamConfig): void;
|
|
27
35
|
|
|
28
|
-
export { ConfigError, DEFAULT_CONFIG, TraceBeamConfig, loadConfigFromEnv };
|
|
36
|
+
export { ConfigError, DEFAULT_CONFIG, TraceBeamConfig, loadConfigFromEnv, mergeConfig, validateConfig };
|