Add wsl linter and fix

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:51:08 +04:00
parent eedfdcecc8
commit 9156d6a16a
882 changed files with 6068 additions and 574 deletions

View File

@@ -59,7 +59,6 @@ func (t TracingExtension) InterceptField(ctx context.Context, next graphql.Resol
)
result, err := next(ctx)
if err != nil {
span.RecordError(err)
}
@@ -76,10 +75,12 @@ func (t TracingExtension) InterceptOperation(ctx context.Context, next graphql.O
rootSpan := trace.SpanFromContext(ctx)
spanCtx := ctx
var operationSpan trace.Span
if rootSpan.IsRecording() {
tracer := otel.Tracer("graphql-operation")
operationName := "GraphQL Operation"
if requestContext.OperationName != "" {
operationName = "GraphQL " + requestContext.OperationName
@@ -108,6 +109,7 @@ func (t TracingExtension) InterceptOperation(ctx context.Context, next graphql.O
duration := time.Since(startTime)
operationType := string(requestContext.Operation.Operation)
operationName := requestContext.OperationName
if operationName == "" {
operationName = "unnamed"