We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1756ce1 commit e6f6be6Copy full SHA for e6f6be6
libraries/src/AWS.Lambda.Powertools.Metrics.AspNetCore/Http/MetricsHelper.cs
@@ -47,7 +47,10 @@ public Task CaptureColdStartMetrics(HttpContext context)
47
return Task.CompletedTask;
48
49
var defaultDimensions = _metrics.Options.DefaultDimensions;
50
- _isColdStart = false;
+ lock (_metrics)
51
+ {
52
+ _isColdStart = false;
53
+ }
54
55
if (context.Items["LambdaContext"] is ILambdaContext lambdaContext)
56
{
0 commit comments