Skip to content

Commit

Permalink
fix(locals): removed sendBatch from node wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnathaniel committed Sep 29, 2021
1 parent c83adcd commit d95f1b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/contrib/terraform/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ locals {
const epsagonHandler = require('./${local.handler_relative_path}.${local.language_to_f_extensions[
local.runtime_to_language[var.runtime]
]}');
local.runtime_to_language[var.runtime]
]}');
exports.${local.handler_method_name} = epsagonHandler.${local.handler_method_name};
try {
Expand All @@ -87,9 +87,10 @@ locals {
appName: '${var.app_name}',
traceCollectorURL: '${var.collector_url}',
metadataOnly: ${var.metadata_only},
sendBatch: false,
});
exports.${local.handler_method_name} = epsagon.lambdaWrapper(exports.${local.handler_method_name});
exports.${local.handler_method_name} = epsagon.lambdaWrapper(epsagonHandler.${local.handler_method_name});
} catch (err) {
console.log('Warning: Epsagon package not found. The Function will not be monitored.');
}
Expand Down

0 comments on commit d95f1b9

Please sign in to comment.