fixup! Aligning struct fields for better memory management.

This commit is contained in:
2024-06-20 16:00:51 +01:00
parent a4f7e1690d
commit 3fb7c7e0b1
7 changed files with 21 additions and 95 deletions
+7 -2
View File
@@ -15,7 +15,7 @@ import (
libpack_config "github.com/lukaszraczylo/graphql-monitoring-proxy/config"
libpack_logger "github.com/lukaszraczylo/graphql-monitoring-proxy/logging"
libpack_monitoring "github.com/lukaszraczylo/graphql-monitoring-proxy/monitoring"
libpack_trace "github.com/lukaszraczylo/graphql-monitoring-proxy/trace"
libpack_trace "github.com/lukaszraczylo/graphql-monitoring-proxy/tracing"
)
// StartHTTPProxy starts the HTTP and points it to the GraphQL server.
@@ -123,8 +123,13 @@ func processGraphQLRequest(c *fiber.Ctx) error {
})
}
ctx := libpack_trace.TraceContextExtract(context.Background(), traceHeaders)
_, span := libpack_trace.ContinueSpanFromContext(ctx, "processingGraphQLRequest")
_, span := libpack_trace.ContinueSpanFromContext(ctx, "GraphQLRequest")
defer span.End()
} else {
cfg.Logger.Warning(&libpack_logger.LogMessage{
Message: "No trace header found",
Pairs: nil,
})
}
}