@pothos-examples/open-telemetry

1.2.41 • 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @pothos-examples/open-telemetry

Weekly Downloads

6

Version

1.2.41

License

MIT

Unpacked Size

16.5 kB

Total Files

9

Last publish

Collaborators

  • hayes