opentelemetry-js/examples/esm-http-ts
OpenTelemetry Bot 9dbd1e446b
chore: prepare next release (#5696)
2025-05-19 09:14:41 +00:00
..
README.md feat: ESM support for instrumentation (#3698) 2023-05-15 10:30:52 +02:00
index.ts docs: update from deprecated SEMRESATTRS_SERVICE_NAME to ATTR_SERVICE_NAME (#5604) 2025-04-10 07:35:26 +00:00
package.json chore: prepare next release (#5696) 2025-05-19 09:14:41 +00:00
tsconfig.json Revert tslib #3914 (#4011) 2023-07-21 09:41:09 -04:00

README.md

Overview

This is a simple example that demonstrates tracing HTTP request, with an app written in TypeScript and transpiled to ES Modules.

Installation

# from this directory
npm install
npm run build
npm start

In a separate terminal, curl localhost:3000.

See two spans in the console (one manual, one for http instrumentation)

LICENSE

Apache License 2.0