@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.
- package/LICENSE +1 -1
- package/README.md +5 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
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
|
+
"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
|
+
}
|