Skip to content

Commit

Permalink
refactor: remove cloudwatch translator as will be added in separate pr
Browse files Browse the repository at this point in the history
  • Loading branch information
InesNi committed Feb 7, 2024
1 parent 62480cd commit 18e76ee
Showing 1 changed file with 1 addition and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function attributeListToObject(attributeList, reporterType) {

// ADOT collector translation

const ADOTSupportedTraceReporters = ['datadog', 'cloudwatch'];
const ADOTSupportedTraceReporters = ['datadog'];
const ADOTSupportedMetricReporters = [];

const collectorConfigTemplate = {
Expand Down Expand Up @@ -225,35 +225,6 @@ const vendorToCollectorConfigTranslators = {
}
};
return { config: ddTraceConfig, envVars };
},
cloudwatch: (config) => {
if (!config.traces) return;

const cwTraceConfig = {
processors: {
'batch/trace': {
timeout: '2s',
send_batch_max_size: 1024,
send_batch_size: 200
}
},
exporters: {
awsxray: {
region: config.region || 'us-east-1'
}
},
service: {
pipelines: {
traces: {
receivers: ['otlp'],
processors: ['batch/trace'],
exporters: ['awsxray']
}
}
}
};

return { config: cwTraceConfig };
}
};

Expand Down

0 comments on commit 18e76ee

Please sign in to comment.