Skip to content

Latest commit

 

History

History

examples

OpenTelemetry JavaScript Examples

This directory contains a number of examples of how to run real applications with OpenTelemetry JavaScript.

Maintained Examples

Maintained Examples are expected to be updated with every OpenTelemetry JavaScript release, to use the latest and greatest features, and best practices.

NameDescriptionComplexity Level
basic-tracer-nodeBasic use of Tracing in Node.js applicationBeginner
opentelemetry-webBasic use of Tracing and Metrics in a Web applicationBeginner
httpHTTP Instrumentation to automatically collect trace data and export them to the backend of choiceIntermediate
httpsHTTPS Instrumentation to automatically collect trace data and export them to the backend of choiceIntermediate
grpcgRPC Instrumentation to automatically collect trace data and export them to the backend of choiceIntermediate
otlp-exporter-nodeThis example shows how to use @opentelemetry/exporter-otlp-http to instrument a simple Node.js applicationIntermediate
opentracing-shimThis is a simple example that demonstrates how existing OpenTracing instrumentation can be integrated with OpenTelemetryIntermediate
esm-http-tsThis is a simple example that demonstrates tracing HTTP request, with an app written in TypeScript and transpiled to ES Modules.Intermediate

Examples of experimental packages can be found at experimental/examples.

Additional examples can be found at @opentelemetry/opentelemetry-js-contrib.

Contributing

Please see CONTRIBUTING.md for instructions on how to contribute.

LICENSE

Apache License 2.0

close