@mark1russell7/otel-ts 0.6.0 → 0.7.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/README.md +6 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/faro.d.ts +6 -0
- package/dist/faro.d.ts.map +1 -1
- package/dist/faro.js +15 -10
- package/dist/faro.js.map +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +5 -4
- package/dist/init.js.map +1 -1
- package/dist/tracing.d.ts +3 -1
- package/dist/tracing.d.ts.map +1 -1
- package/dist/tracing.js +7 -1
- package/dist/tracing.js.map +1 -1
- package/package.json +1 -2
- package/src/faro.ts +17 -10
- package/src/init.ts +7 -6
- package/src/tracing.ts +7 -0
package/README.md
CHANGED
|
@@ -365,6 +365,12 @@ To use Faro, set the collector URL:
|
|
|
365
365
|
const otel = init({ faroCollectorUrl: "https://faro.example.com/collect" });
|
|
366
366
|
```
|
|
367
367
|
|
|
368
|
+
Faro sends the errors, the logs, the Web Vitals and the views to its collector. otel-ts keeps the traces:
|
|
369
|
+
|
|
370
|
+
- Faro has no tracer provider and no fetch or XHR instrumentation of its own. Each request has one span, and the traces go only through the OTLP exporter.
|
|
371
|
+
- Faro reads the context of otel-ts. An error or a log of Faro has the trace ID and the span ID of the active span.
|
|
372
|
+
- The requests of Faro to its collector make no span.
|
|
373
|
+
|
|
368
374
|
## Web Workers
|
|
369
375
|
|
|
370
376
|
You can call `init()` in a Web Worker. The library does not use `window` or `document` there. It does not start Faro, document-load spans or user-interaction spans. It does not add page listeners. Call `forceFlush()` or `shutdown()` yourself before the worker stops.
|