Skip to content

Commit

Permalink
fix: direct invokes also init call-chain-length
Browse files Browse the repository at this point in the history
  • Loading branch information
theburningmonk committed Jun 14, 2019
1 parent c5e1a50 commit fd77446
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ function initCorrelationIds ({ awsRequestId }, sampleDebugLogRate) {
const correlationIds = { awsRequestId }
correlationIds[X_CORRELATION_ID] = awsRequestId
correlationIds[DEBUG_LOG_ENABLED] = Math.random() < sampleDebugLogRate ? 'true' : 'false'
correlationIds[CALL_CHAIN_LENGTH] = 1

CorrelationIds.replaceAllWith(correlationIds)
}
Expand Down

0 comments on commit fd77446

Please sign in to comment.