diff --git a/pkg/serverless/appsec/httpsec/proxy.go b/pkg/serverless/appsec/httpsec/proxy.go index 9df181808a3d3..373b49d536dca 100644 --- a/pkg/serverless/appsec/httpsec/proxy.go +++ b/pkg/serverless/appsec/httpsec/proxy.go @@ -204,7 +204,7 @@ func (lp *ProxyLifecycleProcessor) spanModifier(lastReqId string, chunk *pb.Trac case *events.ALBTargetGroupRequest: makeContext( &ctx, - &event.Path, + nil, &event.Path, event.MultiValueHeaders, event.MultiValueQueryStringParameters, @@ -217,7 +217,7 @@ func (lp *ProxyLifecycleProcessor) spanModifier(lastReqId string, chunk *pb.Trac case *events.LambdaFunctionURLRequest: makeContext( &ctx, - &event.RawPath, + nil, &event.RawPath, toMultiValueMap(event.Headers), toMultiValueMap(event.QueryStringParameters),