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 a38b851
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/consuldp/consul_dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,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 a38b851

Please sign in to comment.