Skip to content

Commit

Permalink
Added out of box support for more instrumentations:
Browse files Browse the repository at this point in the history
  - opentelemetry-instrumentation-aws-sdk
  - opentelemetry-instrumentation-kafkajs
  - opentelemetry-instrumentation-sequelize
  - opentelemetry-instrumentation-typeorm
  - opentelemetry-instrumentation-mongoose
  • Loading branch information
owais committed Apr 15, 2021
1 parent b0285c6 commit ad773b9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
23 changes: 22 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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
}
}
}
5 changes: 5 additions & 0 deletions src/instrumentations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] {
Expand Down

0 comments on commit ad773b9

Please sign in to comment.