Skip to content

Commit

Permalink
feat: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
astuyve committed May 15, 2023
1 parent feffada commit 9bd07e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/trace/listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ export class TraceListener {
if (coldStartNodes.length > 0) {
const coldStartConfig: ColdStartTracerConfig = {
tracerWrapper: this.tracerWrapper,
parentSpan: didFunctionColdStart() || isProactiveInitialization() ? this.inferredSpan || this.wrappedCurrentSpan : this.wrappedCurrentSpan,
parentSpan:
didFunctionColdStart() || isProactiveInitialization()
? this.inferredSpan || this.wrappedCurrentSpan
: this.wrappedCurrentSpan,
lambdaFunctionName: this.context?.functionName,
currentSpanStartTime: this.wrappedCurrentSpan?.startTime(),
minDuration: this.config.minColdStartTraceDuration,
Expand Down

0 comments on commit 9bd07e6

Please sign in to comment.