From 49d47ff9174c0f9a98c1915c53620b4fa836da36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sw=C3=A4rd?= Date: Mon, 21 Aug 2023 12:43:22 +0200 Subject: [PATCH] Re-enable commented out tracing in frontend. --- services/frontend/pkg/command/server.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/services/frontend/pkg/command/server.go b/services/frontend/pkg/command/server.go index a267c680b8..7308a31463 100644 --- a/services/frontend/pkg/command/server.go +++ b/services/frontend/pkg/command/server.go @@ -12,6 +12,7 @@ import ( "github.com/owncloud/ocis/v2/ocis-pkg/config/configlog" "github.com/owncloud/ocis/v2/ocis-pkg/registry" "github.com/owncloud/ocis/v2/ocis-pkg/sync" + "github.com/owncloud/ocis/v2/ocis-pkg/tracing" "github.com/owncloud/ocis/v2/ocis-pkg/version" "github.com/owncloud/ocis/v2/services/frontend/pkg/config" "github.com/owncloud/ocis/v2/services/frontend/pkg/config/parser" @@ -32,10 +33,10 @@ func Server(cfg *config.Config) *cli.Command { }, Action: func(c *cli.Context) error { logger := logging.Configure(cfg.Service.Name, cfg.Log) - // tracingProvider, err := tracing.GetServiceTraceProvider(cfg.Tracing, cfg.Service.Name) - // if err != nil { - // return err - // } + tracingProvider, err := tracing.GetServiceTraceProvider(cfg.Tracing, cfg.Service.Name) + if err != nil { + return err + } gr := run.Group{} ctx, cancel := defineContext(cfg) @@ -53,7 +54,7 @@ func Server(cfg *config.Config) *cli.Command { runtime.RunWithOptions(rCfg, pidFile, runtime.WithLogger(&logger.Logger), runtime.WithRegistry(reg), - // runtime.WithTraceProvider(tracingProvider), + runtime.WithTraceProvider(tracingProvider), ) return nil