Skip to content

Commit adafb33

Browse files
remove kind and name fields (handled by default)
Signed-off-by: Saumyacodes-40 <[email protected]>
1 parent 0090b57 commit adafb33

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

receiver/jaegerreceiver/trace_receiver.go

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,7 @@ func (jr *jReceiver) startAgent(host component.Host) error {
249249
}
250250
jr.agentProcessors = append(jr.agentProcessors, processor)
251251

252-
jr.settings.Logger.Info("Starting UDP server for Binary Thrift",
253-
zap.String("kind", "receiver"),
254-
zap.String("name", "jaegerreceiver"),
255-
zap.String("endpoint", jr.config.AgentBinaryThrift.Endpoint),
256-
)
252+
jr.settings.Logger.Info("Starting UDP server for Binary Thrift", zap.String("endpoint", jr.config.AgentBinaryThrift.Endpoint))
257253
}
258254

259255
if jr.config.AgentCompactThrift.Endpoint != "" {
@@ -275,11 +271,7 @@ func (jr *jReceiver) startAgent(host component.Host) error {
275271
}
276272
jr.agentProcessors = append(jr.agentProcessors, processor)
277273

278-
jr.settings.Logger.Info("Starting UDP server for Compact Thrift",
279-
zap.String("kind", "receiver"),
280-
zap.String("name", "jaegerreceiver"),
281-
zap.String("endpoint", jr.config.AgentCompactThrift.Endpoint),
282-
)
274+
jr.settings.Logger.Info("Starting UDP server for Compact Thrift", zap.String("endpoint", jr.config.AgentCompactThrift.Endpoint))
283275
}
284276

285277
jr.goroutines.Add(len(jr.agentProcessors))
@@ -293,11 +285,7 @@ func (jr *jReceiver) startAgent(host component.Host) error {
293285
if jr.config.AgentHTTPEndpoint != "" {
294286
jr.agentServer = httpserver.NewHTTPServer(jr.config.AgentHTTPEndpoint, &notImplementedConfigManager{}, metrics.NullFactory, jr.settings.Logger)
295287

296-
jr.settings.Logger.Info("Starting HTTP server for Jaeger Agent",
297-
zap.String("kind", "receiver"),
298-
zap.String("name", "jaegerreceiver"),
299-
zap.String("endpoint", jr.config.AgentHTTPEndpoint),
300-
)
288+
jr.settings.Logger.Info("Starting HTTP server for Jaeger Agent", zap.String("endpoint", jr.config.AgentHTTPEndpoint))
301289

302290
jr.goroutines.Add(1)
303291
go func() {
@@ -407,11 +395,7 @@ func (jr *jReceiver) startCollector(ctx context.Context, host component.Host) er
407395
return err
408396
}
409397

410-
jr.settings.Logger.Info("Starting HTTP server for Jaeger Collector",
411-
zap.String("kind", "receiver"),
412-
zap.String("name", "jaegerreceiver"),
413-
zap.String("endpoint", jr.config.HTTPServerConfig.Endpoint),
414-
)
398+
jr.settings.Logger.Info("Starting HTTP server for Jaeger Collector", zap.String("endpoint", jr.config.HTTPServerConfig.Endpoint))
415399

416400
jr.goroutines.Add(1)
417401
go func() {
@@ -436,11 +420,7 @@ func (jr *jReceiver) startCollector(ctx context.Context, host component.Host) er
436420

437421
api_v2.RegisterCollectorServiceServer(jr.grpc, jr)
438422

439-
jr.settings.Logger.Info("Starting gRPC server for Jaeger Collector",
440-
zap.String("kind", "receiver"),
441-
zap.String("name", "jaegerreceiver"),
442-
zap.String("endpoint", jr.config.GRPCServerConfig.NetAddr.Endpoint),
443-
)
423+
jr.settings.Logger.Info("Starting gRPC server for Jaeger Collector", zap.String("endpoint", jr.config.GRPCServerConfig.NetAddr.Endpoint))
444424

445425
jr.goroutines.Add(1)
446426
go func() {

0 commit comments

Comments
 (0)