From 614f69d403d7e6f541ff2f018f0a6a607ee28391 Mon Sep 17 00:00:00 2001 From: Andy Asp Date: Mon, 12 Aug 2024 19:15:49 -0400 Subject: [PATCH] Fix build errors --- cmd/rollout-operator/instrumentation.go | 4 ++-- integration/k3t/cluster.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/rollout-operator/instrumentation.go b/cmd/rollout-operator/instrumentation.go index 1ea66874c..d8e38436e 100644 --- a/cmd/rollout-operator/instrumentation.go +++ b/cmd/rollout-operator/instrumentation.go @@ -45,11 +45,11 @@ func newInstrumentedRouter(metrics *metrics) (*mux.Router, http.Handler) { router := mux.NewRouter() httpMiddleware := []middleware.Interface{ - middleware.Tracer{ + middleware.RouteInjector{ RouteMatcher: router, }, + middleware.Tracer{}, middleware.Instrument{ - RouteMatcher: router, Duration: metrics.RequestDuration, RequestBodySize: metrics.ReceivedMessageSize, ResponseBodySize: metrics.SentMessageSize, diff --git a/integration/k3t/cluster.go b/integration/k3t/cluster.go index 9fdf9a8be..d21ce2df9 100644 --- a/integration/k3t/cluster.go +++ b/integration/k3t/cluster.go @@ -88,7 +88,7 @@ func NewCluster(ctx context.Context, t *testing.T, opts ...Option) Cluster { }, } - clusterConfig, err := config.TransformSimpleToClusterConfig(ctx, runtimes.SelectedRuntime, simpleCfg) + clusterConfig, err := config.TransformSimpleToClusterConfig(ctx, runtimes.SelectedRuntime, simpleCfg, "") require.NoError(t, err, "Can't transform simple config to cluster config") clusterConfig, err = config.ProcessClusterConfig(*clusterConfig)