{"repo":"DanielMSchmidt/apollo-opentracing","free":true,"listed":false,"github":"https://github.com/DanielMSchmidt/apollo-opentracing","clone":"git clone https://github.com/DanielMSchmidt/apollo-opentracing.git","description":"Performance trace your Apollo GraphQL server with Opentracing","language":"TypeScript","stars":182,"topics":["apollographql","apollo-server","graphql","opentracing","performance-monitoring","zipkin","jaegertracing"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Apollo Opentracing Apollo Opentracing allows you to integrate open source baked performance tracing to your Apollo server based on industry standards for tracing. - 🚀 Request & Field level resolvers are traced out of the box - 🔍 Queries and results are logged, to make debugging easier - ⚙️ Select which requests you want to trace - 🔗 Spans transmitted through the HTTP Headers are picked up - 🔧 Use the opentracing compatible tracer you like, e.g. - jaeger - zipkin - 🦖 Support from node 6 on Installation Run npm install --save apollo-opentracing given that you already setup an opentracing tracer accordingly. Setup We need two types of tracer (which could be identical if you like): - server: Only used for the root (the first span we will start) - local: Used to start every other span Connecting Services To connect other services you need to use the opentracing inject function of your tracer. We pass the current span down to your resolvers as info.span , so you should use it. You can also make use of it and add new logs or tags on the fly if you like. This may look something like this: Selective Tracing Sometimes you don't want to trace everything, so we provide ways to select if you want to start a span right now or not. By Request If you construct the extension with shouldTraceRequest you get the option to opt-in or out on a request basis. When you don't start the span for the request the field resolvers will also not be used. The function is called with the same arguments ","default_branch":null,"files":null,"tree":[],"storefront":"/r/DanielMSchmidt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DanielMSchmidt/apollo-opentracing/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}