From ad773b9e8db0e4c5ad47276a0ff2e9987b665568 Mon Sep 17 00:00:00 2001 From: Owais Lone Date: Thu, 15 Apr 2021 20:50:01 +0530 Subject: [PATCH] Added out of box support for more instrumentations: - opentelemetry-instrumentation-aws-sdk - opentelemetry-instrumentation-kafkajs - opentelemetry-instrumentation-sequelize - opentelemetry-instrumentation-typeorm - opentelemetry-instrumentation-mongoose --- package.json | 23 ++++++++++++++++++++++- src/instrumentations/index.ts | 5 +++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a3c9b6482..338a83f96 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,13 @@ "@opentelemetry/instrumentation-pg": "^0.14.0", "@opentelemetry/instrumentation-redis": "^0.14.0", "opentelemetry-instrumentation-amqplib": "^0.3.0", - "opentelemetry-instrumentation-elasticsearch": "^0.3.0" + "opentelemetry-instrumentation-elasticsearch": "^0.3.0", + "opentelemetry-instrumentation-aws-sdk": "^0.3.1", + "opentelemetry-instrumentation-kafkajs": "^0.3.0", + "opentelemetry-instrumentation-sequelize": "^0.3.0", + "opentelemetry-instrumentation-typeorm": "^0.3.0", + "opentelemetry-instrumentation-mongoose": "^0.3.0" + }, "peerDependenciesMeta": { "@opentelemetry/instrumentation-http": { @@ -145,6 +151,21 @@ }, "opentelemetry-instrumentation-elasticsearch": { "optional": true + }, + "opentelemetry-instrumentation-aws-sdk": { + "optional": true + }, + "opentelemetry-instrumentation-kafkajs": { + "optional": true + }, + "opentelemetry-instrumentation-sequelize": { + "optional": true + }, + "opentelemetry-instrumentation-typeorm": { + "optional": true + }, + "opentelemetry-instrumentation-mongoose":{ + "optional": true } } } diff --git a/src/instrumentations/index.ts b/src/instrumentations/index.ts index 6d0bbf55e..5167457b0 100644 --- a/src/instrumentations/index.ts +++ b/src/instrumentations/index.ts @@ -36,6 +36,11 @@ const supportedInstrumentations: [string, string][] = [ 'opentelemetry-instrumentation-elasticsearch', 'ElasticsearchInstrumentation', ], + ['opentelemetry-instrumentation-aws-sdk', 'AwsInstrumentation'], + ['opentelemetry-instrumentation-kafkajs', 'KafkaJsInstrumentation'], + ['opentelemetry-instrumentation-sequelize', 'SequelizeInstrumentation'], + ['opentelemetry-instrumentation-typeorm', 'TypeormInstrumentation'], + ['opentelemetry-instrumentation-mongoose', 'MongooseInstrumentation'], ]; export function getInstrumentations(): InstrumentationOption[] {