Skip to content

Commit

Permalink
Remove pointer to exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
jjti committed Feb 1, 2024
1 parent bb21f71 commit 559813e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/consuldp/consul_dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ type ConsulDataplane struct {
aclToken string
metricsConfig *metricsConfig
lifecycleConfig *lifecycleConfig
hcpTelemetry *telemetry.Exporter
}

// NewConsulDP creates a new instance of ConsulDataplane
Expand Down Expand Up @@ -221,13 +220,12 @@ func (cdp *ConsulDataplane) Run(ctx context.Context) error {
return err
}

cdp.hcpTelemetry = telemetry.NewHCPExporter(
go telemetry.NewHCPExporter(
cdp.resourceClient,
cdp.logger.Named("hcp_telemetry"),
fmt.Sprintf("%s:%d", cdp.cfg.Envoy.AdminBindAddress, cdp.cfg.Envoy.AdminBindPort),
cdp.cfg.Proxy.ProxyID,
)
go cdp.hcpTelemetry.Run(ctx)
).Run(ctx)

doneCh := make(chan error)
go func() {
Expand Down

0 comments on commit 559813e

Please sign in to comment.