0.14.0 • Published 4 years ago
@opentelemetry/plugin-fetch v0.14.0
OpenTelemetry Fetch Instrumentation for web
This module provides auto instrumentation for web using fetch.
Installation
npm install --save @opentelemetry/plugin-fetch
Usage
'use strict';
import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/tracing';
import { WebTracerProvider } from '@opentelemetry/web';
import { FetchPlugin } from '@opentelemetry/plugin-fetch';
import { ZoneContextManager } from '@opentelemetry/context-zone';
const provider = new WebTracerProvider({
plugins: [
new FetchPlugin(),
],
});
provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
provider.register({
contextManager: new ZoneContextManager(),
});
// and some test
fetch('http://localhost:8090/fetch.js');
Example Screenshots
See examples/tracer-web/fetch for a short example.
Useful links
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more about OpenTelemetry JavaScript: https://github.com/open-telemetry/opentelemetry-js
- For help or feedback on this project, join us on gitter
License
Apache 2.0 - See LICENSE for more information.
0.14.0
4 years ago
0.13.0
4 years ago
0.12.1-alpha.4
4 years ago
0.12.1-alpha.7
4 years ago
0.12.1-alpha.3
4 years ago
0.12.1-alpha.54
4 years ago
0.12.0
4 years ago
0.11.1-alpha.53
4 years ago
0.11.1-alpha.44
4 years ago
0.11.1-alpha.36
4 years ago
0.11.1-alpha.35
4 years ago
0.11.1-alpha.15
4 years ago
0.11.1-alpha.48
4 years ago
0.11.0
4 years ago
0.10.3-alpha.41
4 years ago
0.10.3-alpha.40
4 years ago
0.10.3-alpha.35
4 years ago
0.10.3-alpha.34
4 years ago
0.10.3-alpha.28
4 years ago
0.10.3-canary.0
4 years ago
0.10.2
4 years ago
0.10.1
4 years ago
0.10.0
4 years ago
0.9.0
5 years ago