@haathie/postgraphile-otel
v0.1.0
Published
OpenTelemetry plugin for PostGraphile
Downloads
59
Readme
Postgraphile OTEL Plugin
OpenTelemetry plugin for PostGraphile, providing tracing capabilities for GraphQL requests. This plugin traces:
- Errors in GraphQL requests
- Operation Planning
- Step Execution
Installation & Usage
Install:
npm i @haathie/postgraphile-otelAdd to your PostGraphile config:
import { OTELPlugin } from '@haathie/postgraphile-otel';
const preset: GraphileConfig.Preset = {
...otherOptions,
plugins: [
OTELPlugin,
...otherPlugins,
],
}Of course, this assumes you have OpenTelemetry set up in your application. If you don't, you can refer to the OpenTelemetry documentation for guidance on how to set it up. For reference, you can refer to our example application's tracing
An example trace looks like this in Jaeger:

