Add GraphQL tracing

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-24 10:23:42 +01:00
parent 993032e5c0
commit 7b6c1100ec
2 changed files with 91 additions and 0 deletions

View File

@@ -108,6 +108,9 @@ func graphqlHandler(proboSvc *probo.Service, usrmgrSvc *usrmgr.Service, authCfg
},
)
srv.Use(extension.Introspection{})
srv.Use(tracingExtension{})
srv.SetRecoverFunc(
func(ctx context.Context, err any) error {
panic(fmt.Errorf("graphql resolver panic: %v", err))