Skip to content

Commit 89dca2e

Browse files
refactor: move const
1 parent 5cd16f6 commit 89dca2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Voxel.MiddyNet.Tracing.ApiGatewayMiddleware/ApiGatewayTracingMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ public class ApiGatewayTracingMiddleware : ILambdaMiddleware<APIGatewayProxyRequ
99
private const string TraceContextKey = "TraceContext";
1010
private const string TraceParentHeaderName = "traceparent";
1111
private const string TraceStateHeaderName = "tracestate";
12+
private const string TraceIdHeaderName = "trace-id";
13+
1214

1315
public Task Before(APIGatewayProxyRequest apiGatewayEvent, MiddyNetContext context)
1416
{
@@ -31,8 +33,6 @@ public Task Before(APIGatewayProxyRequest apiGatewayEvent, MiddyNetContext conte
3133
return Task.CompletedTask;
3234
}
3335

34-
private const string TraceIdHeaderName = "trace-id";
35-
3636
public Task<APIGatewayProxyResponse> After(APIGatewayProxyResponse lambdaResponse, MiddyNetContext context)
3737
{
3838
return Task.FromResult(lambdaResponse);

0 commit comments

Comments
 (0)