Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
meghaniankov committed Jan 31, 2024
1 parent 5a75ea8 commit c83d670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/envoy/boilerplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,15 @@ func (c *KubernetesConfigurator) makeConnectionManager(virtualHosts []*route.Vir
return &hcm.HttpConnectionManager{}, err
}

tracingProviderConfig := &hcm.HttpConnectionManager_Tracing{}
tracingConfig := &hcm.HttpConnectionManager_Tracing{}

if c.tracingProvider == "zipkin" {
zipkinTracingProvider, err := anypb.New(makeZipkinTracingProvider())
if err != nil {
log.Fatal(err)
}

tracingProviderConfig = &hcm.HttpConnectionManager_Tracing{
tracingConfig = &hcm.HttpConnectionManager_Tracing{
Provider: &tracing.Tracing_Http{
Name: "config.trace.v3.Tracing.Http",
ConfigType: &tracing.Tracing_Http_TypedConfig{TypedConfig: zipkinTracingProvider},
Expand All @@ -303,7 +303,7 @@ func (c *KubernetesConfigurator) makeConnectionManager(virtualHosts []*route.Vir
VirtualHosts: virtualHosts,
},
},
Tracing: tracingProviderConfig,
Tracing: tracingConfig,
AccessLog: accessLoggers,
UseRemoteAddress: &wrapperspb.BoolValue{Value: c.useRemoteAddress},
}, nil
Expand Down

0 comments on commit c83d670

Please sign in to comment.