tracebeam-sdk 0.1.0 → 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 CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TraceBeamConfig } from './client-CaHega3m.mjs';
2
- export { C as CaptureOptions, E as Event, e as EventBatch, b as EventLevel, d as Extra, c as Tags, a as TraceBeamSDK, h as TransportErrorResponse, f as TransportResponse, g as TransportSuccessResponse } from './client-CaHega3m.mjs';
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 './client-CaHega3m.js';
2
- export { C as CaptureOptions, E as Event, e as EventBatch, b as EventLevel, d as Extra, c as Tags, a as TraceBeamSDK, h as TransportErrorResponse, f as TransportResponse, g as TransportSuccessResponse } from './client-CaHega3m.js';
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 };