From 47559fe40faf56a427caa0ca3b2132b3dfa2a642 Mon Sep 17 00:00:00 2001 From: Adam Egyed Date: Wed, 12 Aug 2020 01:31:34 -0700 Subject: [PATCH] Update sequelize docs with OpenTelemetry support Because this and the knex usage docs will be similar, let's use this PR to review the content before duplicating it to the knex page. --- content/node/sequelize/_index.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/content/node/sequelize/_index.md b/content/node/sequelize/_index.md index 69847f4..4229399 100644 --- a/content/node/sequelize/_index.md +++ b/content/node/sequelize/_index.md @@ -114,6 +114,16 @@ route|Yes tracestate|Yes traceparent|Yes +Additionally, if the tracestate or traceparent fields are included, one can specify which tracing library the wrapper should collect data from. This can be done by providing a third argument, which is an object. Within that options object should be a field named TraceProvider, containing the string name of the tracing library (case-insensitive). + +```javascript +wrapMainSequelizeAsMiddleware(Sequelize, include={...}, {TraceProvider: 'opencensus'}); +``` +Option Name|Associated Library +---|--- +opencensus|https://opencensus.io/ +opentelemetry|https://opentelemetry.io/ + ##### Options examples {{}} @@ -330,7 +340,7 @@ Application listening on 3000 On making a request to that server at `http://localhost:3000/polls/1000`, the PostgreSQL logs show: -{{}} +{{}} {{}} 2019-06-03 14:32:10.842 PDT [32004] LOG: statement: SELECT * from polls_question