@echoteam/signoz-react 1.0.5 → 1.0.6

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,7 +1,3 @@
1
- export declare class SignOzConfigurationError extends Error {
2
- missingFields?: string[] | undefined;
3
- constructor(message: string, missingFields?: string[] | undefined);
4
- }
5
1
  export interface SignOzConfig {
6
2
  serviceName: string;
7
3
  serviceVersion: string;
@@ -10,6 +6,12 @@ export interface SignOzConfig {
10
6
  url: string;
11
7
  headers?: Record<string, string>;
12
8
  traceSampleRate?: number;
9
+ batchSpanProcessorConfig?: {
10
+ maxQueueSize?: number;
11
+ scheduledDelayMillis?: number;
12
+ exportTimeoutMillis?: number;
13
+ };
14
+ allowedOrigins?: (string | RegExp)[];
13
15
  }
14
16
  declare global {
15
17
  interface Window {
@@ -19,12 +21,12 @@ declare global {
19
21
  REACT_APP_SIGNOZ_SERVICE_NAMESPACE: string;
20
22
  REACT_APP_SIGNOZ_URL: string;
21
23
  REACT_APP_SIGNOZ_TRACE_SAMPLE_RATE: string;
24
+ REACT_APP_SIGNOZ_ALLOWED_ORIGINS: string;
22
25
  }
23
26
  }
24
27
  /**
25
28
  * Inisialisasi SignOz tracing untuk aplikasi React
26
29
  * @param config - Konfigurasi SignOz (opsional, akan menggunakan environment variables jika tidak disediakan)
27
- * @throws {SignOzConfigurationError} Jika konfigurasi tidak valid
28
30
  */
29
31
  export declare function initializeSignOzTracing(config?: SignOzConfig): void;
30
32
  export default initializeSignOzTracing;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@echoteam/signoz-react",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "SignOz React JS - Library untuk monitoring dan tracing aplikasi React menggunakan OpenTelemetry dan SignOz",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -48,15 +48,16 @@
48
48
  "react-dom": ">=16.8.0"
49
49
  },
50
50
  "dependencies": {
51
- "@opentelemetry/api": "^1.7.0",
52
- "@opentelemetry/auto-instrumentations-web": "^0.40.0",
53
- "@opentelemetry/context-zone": "^1.21.0",
54
- "@opentelemetry/exporter-trace-otlp-http": "^0.48.0",
55
- "@opentelemetry/instrumentation": "^0.48.0",
56
- "@opentelemetry/resources": "^1.21.0",
57
- "@opentelemetry/sdk-trace-base": "^1.21.0",
58
- "@opentelemetry/sdk-trace-web": "^1.21.0",
59
- "react-error-boundary": "^4.0.11"
51
+ "@opentelemetry/api": "1.7.0",
52
+ "@opentelemetry/auto-instrumentations-web": "0.40.0",
53
+ "@opentelemetry/context-zone": "1.21.0",
54
+ "@opentelemetry/exporter-trace-otlp-http": "0.48.0",
55
+ "@opentelemetry/instrumentation": "0.48.0",
56
+ "@opentelemetry/resources": "1.21.0",
57
+ "@opentelemetry/sdk-trace-base": "1.21.0",
58
+ "@opentelemetry/sdk-trace-web": "1.21.0",
59
+ "react-error-boundary": "4.0.12",
60
+ "zone.js": "0.14.4"
60
61
  },
61
62
  "devDependencies": {
62
63
  "@babel/core": "^7.23.0",