opentelemetry-js/examples/esm-http-ts
OpenTelemetry Bot 6508845fa6
chore: prepare next release (#5431)
2025-02-06 20:40:30 +00:00
..
README.md feat: ESM support for instrumentation (#3698) 2023-05-15 10:30:52 +02:00
index.ts feat(sdk-trace-base)!: remove `addSpanProcessor` API (#5152) 2024-11-14 17:10:14 +01:00
package.json chore: prepare next release (#5431) 2025-02-06 20:40:30 +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