@echoteam/signoz-react 1.0.3 → 1.0.4

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +5 -1
  3. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 CODR Team
3
+ Copyright (c) 2024 echoteam
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -30,6 +30,7 @@ REACT_APP_SIGNOZ_SERVICE_VERSION=1.0.0
30
30
  REACT_APP_SIGNOZ_ENV=production
31
31
  REACT_APP_SIGNOZ_SERVICE_NAMESPACE=frontend
32
32
  REACT_APP_SIGNOZ_URL=https://your-signoz-instance.com/v1/traces
33
+ REACT_APP_SIGNOZ_TRACE_SAMPLE_RATE=1.0
33
34
  ```
34
35
 
35
36
  ### Inisialisasi
@@ -49,7 +50,8 @@ initializeSignOzTracing({
49
50
  url: 'https://your-signoz-instance.com/v1/traces',
50
51
  headers: {
51
52
  'Authorization': 'Bearer your-token'
52
- }
53
+ },
54
+ traceSampleRate: 0.5 // Sampling 50% trace
53
55
  });
54
56
  ```
55
57
 
@@ -199,6 +201,8 @@ Inisialisasi SignOz tracing untuk aplikasi React.
199
201
  - `serviceNamespace`: Namespace layanan
200
202
  - `url`: URL endpoint SignOz
201
203
  - `headers`: Headers tambahan untuk request
204
+ - `traceSampleRate`: Sampling rate tracing (0.0 - 1.0, default: 1.0 jika tidak diisi)
205
+ - Bisa juga diatur lewat environment variable `REACT_APP_SIGNOZ_TRACE_SAMPLE_RATE`
202
206
 
203
207
  ### `ErrorBoundary`
204
208
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@echoteam/signoz-react",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
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",
@@ -86,4 +86,4 @@
86
86
  "node": ">=14.0.0",
87
87
  "npm": ">=6.0.0"
88
88
  }
89
- }
89
+ }