Skip to content

Commit

Permalink
[receiver/cloudfoundryreceiver] Fix error creating streams for a diff…
Browse files Browse the repository at this point in the history
…erent type of telemetry

Co-authored-by: Cem Deniz Kabakci <[email protected]>
  • Loading branch information
jriguera and CemDK committed May 30, 2024
1 parent 47e4ae3 commit ae1c749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/cloudfoundryreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ func (cfr *cloudFoundryReceiver) Start(ctx context.Context, host component.Host)
return
}
if cfr.nextLogs != nil {
cfr.streamLogs(innerCtx, streamFactory.CreateMetricsStream(innerCtx, cfr.config.RLPGateway.ShardID))
cfr.streamLogs(innerCtx, streamFactory.CreateLogsStream(innerCtx, cfr.config.RLPGateway.ShardID))
} else if cfr.nextMetrics != nil {
cfr.streamMetrics(innerCtx, streamFactory.CreateLogsStream(innerCtx, cfr.config.RLPGateway.ShardID))
cfr.streamMetrics(innerCtx, streamFactory.CreateMetricsStream(innerCtx, cfr.config.RLPGateway.ShardID))
}
cfr.settings.Logger.Debug("cloudfoundry metrics streamer stopped")
}()
Expand Down

0 comments on commit ae1c749

Please sign in to comment.