opentelemetry-js/examples
OpenTelemetry Bot 9dbd1e446b
chore: prepare next release (#5696)
2025-05-19 09:14:41 +00:00
..
basic-tracer-node docs: update from deprecated SEMRESATTRS_SERVICE_NAME to ATTR_SERVICE_NAME (#5604) 2025-04-10 07:35:26 +00:00
esm-http-ts chore: prepare next release (#5696) 2025-05-19 09:14:41 +00:00
grpc-js docs: update from deprecated SEMRESATTRS_SERVICE_NAME to ATTR_SERVICE_NAME (#5604) 2025-04-10 07:35:26 +00:00
http chore: prepare next release (#5696) 2025-05-19 09:14:41 +00:00
https chore: prepare next release (#5696) 2025-05-19 09:14:41 +00:00
opentelemetry-web chore: prepare next release (#5696) 2025-05-19 09:14:41 +00:00
opentracing-shim docs: update from deprecated SEMRESATTRS_SERVICE_NAME to ATTR_SERVICE_NAME (#5604) 2025-04-10 07:35:26 +00:00
otlp-exporter-node chore: prepare next release (#5696) 2025-05-19 09:14:41 +00:00
.eslintrc.js chore(eslint): remove airbnb package (#2955) 2022-05-12 23:52:16 +08:00
README.md fix a wrong internal link in examples readme (#4512) 2024-02-28 09:29:01 +02:00

README.md

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.

Name Description Complexity Level
basic-tracer-node Basic use of Tracing in Node.js application Beginner
opentelemetry-web Basic use of Tracing and Metrics in a Web application Beginner
http HTTP Instrumentation to automatically collect trace data and export them to the backend of choice Intermediate
https HTTPS Instrumentation to automatically collect trace data and export them to the backend of choice Intermediate
grpc gRPC Instrumentation to automatically collect trace data and export them to the backend of choice Intermediate
otlp-exporter-node This example shows how to use @opentelemetry/exporter-otlp-http to instrument a simple Node.js application Intermediate
opentracing-shim This is a simple example that demonstrates how existing OpenTracing instrumentation can be integrated with OpenTelemetry Intermediate
esm-http-ts This 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