Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppSignals Functionality - add Application Signals Configuration into ADOT #12

Merged
merged 10 commits into from
Aug 13, 2024
Prev Previous commit
Next Next commit
optimize setting exportIntervalMillis
  • Loading branch information
jj22ee committed Aug 13, 2024
commit 7f393a2bf72edd945c4a874829ae9aa6cc725011
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,9 @@ export class AwsOpentelemetryConfigurator {

diag.info('AWS Application Signals enabled.');

let millis: string | undefined = process.env[METRIC_EXPORT_INTERVAL_CONFIG];
if (millis === undefined) {
millis = DEFAULT_METRIC_EXPORT_INTERVAL_MILLIS.toString();
}

diag.debug(`AWS Application Signals Metrics export interval: ${millis}`);
let exportIntervalMillis: number = Number(process.env[METRIC_EXPORT_INTERVAL_CONFIG]);
diag.debug(`AWS Application Signals Metrics export interval: ${exportIntervalMillis}`);

let exportIntervalMillis: number = Number(millis).valueOf();
if (isNaN(exportIntervalMillis) || exportIntervalMillis.valueOf() > DEFAULT_METRIC_EXPORT_INTERVAL_MILLIS) {
exportIntervalMillis = DEFAULT_METRIC_EXPORT_INTERVAL_MILLIS;

Expand Down
Loading