Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const options: SpanOptions & TraceOptions = {};
if (this.context) {
options.tags = {
cold_start: this.coldstart,
event_source: this.eventSource,
function_arn: this.context.invokedFunctionArn,
request_id: this.context.awsRequestId,
resource_names: this.context.functionName,
};
}
if (spanContext !== null) {
options.childOf = spanContext;
}
return Tracer.wrap(this.handlerName, options, func);
}
}