Skip to content

Commit

Permalink
chore: removed unwanted implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamohanan committed Oct 14, 2024
1 parent d3d24e5 commit c5f688b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
7 changes: 1 addition & 6 deletions packages/core/src/tracing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ if (customInstrumentations.length > 0) {
* @property {Function} [updateConfig]
* @property {boolean} [batchable]
* @property {string} [spanName]
* @property {string} [instrumentationName]
*/

/**
Expand Down Expand Up @@ -145,11 +144,7 @@ const isInstrumentationDisabled = (cfg, instrumentationKey) => {
// This is primarily implemented to handle customInstrumentation cases.
const matchResult = instrumentationKey.match(/.\/instrumentation\/[^/]*\/(.*)/);
const extractedInstrumentationName = matchResult ? matchResult[1] : instrumentationKey.match(/\/([^/]+)$/)[1];
return (
cfg.tracing.disabledTracers.includes(extractedInstrumentationName.toLowerCase()) ||
(instrumentationModules[instrumentationKey].instrumentationName &&
cfg.tracing.disabledTracers.includes(instrumentationModules[instrumentationKey].instrumentationName))
);
return cfg.tracing.disabledTracers.includes(extractedInstrumentationName.toLowerCase());
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ awsProducts.forEach(awsProduct => {

let isActive = false;

exports.instrumentationName = 'aws-sdk/v2';

exports.isActive = function () {
return isActive;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ awsProducts.forEach(awsProduct => {

let isActive = false;

exports.instrumentationName = 'aws-sdk/v3';

exports.init = function init() {
sqsConsumer.init();

Expand Down

0 comments on commit c5f688b

Please sign in to comment.