Skip to content

Commit

Permalink
zipkinreceiver: remove unnecessary internal argument (#9569)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Apr 28, 2022
1 parent 174f438 commit 8a0672b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions receiver/zipkinreceiver/trace_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ var errNextConsumerRespBody = []byte(`"Internal Server Error"`)

// zipkinReceiver type is used to handle spans received in the Zipkin format.
type zipkinReceiver struct {
// addr is the address onto which the HTTP server will be bound
host component.Host
nextConsumer consumer.Traces
id config.ComponentID

Expand All @@ -68,7 +66,7 @@ type zipkinReceiver struct {

var _ http.Handler = (*zipkinReceiver)(nil)

// newReceiver creates a new zipkinreceiver.zipkinReceiver reference.
// newReceiver creates a new zipkinReceiver reference.
func newReceiver(config *Config, nextConsumer consumer.Traces, settings component.ReceiverCreateSettings) (*zipkinReceiver, error) {
if nextConsumer == nil {
return nil, componenterror.ErrNilNextConsumer
Expand All @@ -95,7 +93,6 @@ func (zr *zipkinReceiver) Start(_ context.Context, host component.Host) error {
}

var err error
zr.host = host
zr.server, err = zr.config.HTTPServerSettings.ToServer(host, zr.settings.TelemetrySettings, zr)
if err != nil {
return err
Expand Down

0 comments on commit 8a0672b

Please sign in to comment.