From 7a0c39fec093f0f4265ba6367f0651cc5968dd14 Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Mon, 28 Dec 2020 07:33:12 -0800 Subject: [PATCH] Update GraphQL README to note that called `setTracerProvider` is optional (#293) This caused me some confusion because they node-sdk doesn't give me a tracer provider to pass in here. But it turned out I don't have to call this at all. Co-authored-by: Bartlomiej Obecny --- plugins/node/opentelemetry-instrumentation-graphql/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/node/opentelemetry-instrumentation-graphql/README.md b/plugins/node/opentelemetry-instrumentation-graphql/README.md index 80890ebbd5..2340e81799 100644 --- a/plugins/node/opentelemetry-instrumentation-graphql/README.md +++ b/plugins/node/opentelemetry-instrumentation-graphql/README.md @@ -44,7 +44,7 @@ const graphQLInstrumentation = new GraphQLInstrumentation({ // mergeItems: true, }); -graphQLInstrumentation.setTracerProvider(provider); +graphQLInstrumentation.setTracerProvider(provider); // optional; uses global tracer by default graphQLInstrumentation.enable();