@pothos-examples/open-telemetry

2.1.2 • Public • Published

Pothos Open Telemetry example

Getting started

1. Run Zipkin in Docker

docker run -d -p 9411:9411 openzipkin/zipkin

2. Install dependencies

pnpm install

3. Start server

pnpm start

4. Run a query

Open http://localhost:4000/graphql and send this query:

{
  fastHello: hello(delay: 10)
  slowHello: hello(delay: 1000)
}

5. Have a look into Zipkin

Open http://localhost:9411 in the browser.

Dependents (0)

Package Sidebar

Install

npm i @pothos-examples/open-telemetry

Weekly Downloads

0

Version

2.1.2

License

MIT

Unpacked Size

18.6 kB

Total Files

9

Last publish

Collaborators

  • hayes