0.1.0 • Published 2 years ago

@funcional-health/apollo-server-dd-plugin v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Apollo Server Datadog Plugin

Custom Datadog instrumentation for Apollo Server.

Installation

yarn add @funcional-health/apollo-server-dd-plugin

Then add the plugin to your NestJS GraphQL Module configuration:

import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { Logger } from '@nestjs/common';
import { dataDogTracePlugin } from '@funcional-health/apollo-server-dd-plugin';

@Module({
  imports: [
    // ...
    GraphQLModule.forRoot({
      // ...
      plugins.push(dataDogTracePlugin)
    }),
    // ...
  ],
})
export class AppModule {}