Skip to content

[receiver/jaegerreceiver] Add logs when the respective server starts in jaegerreceiver #36961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jan 22, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions receiver/jaegerreceiver/trace_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
"go.opentelemetry.io/collector/receiver"
"go.opentelemetry.io/collector/receiver/receiverhelper"
"go.uber.org/multierr"
"go.uber.org/zap"
"google.golang.org/grpc"

jaegertranslator "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger"
Expand Down Expand Up @@ -247,6 +248,12 @@ func (jr *jReceiver) startAgent(host component.Host) error {
return err
}
jr.agentProcessors = append(jr.agentProcessors, processor)

jr.settings.Logger.Info("Starting UDP server for Binary Thrift",
zap.String("kind", "receiver"),
zap.String("name", "jaegerreceiver"),
zap.String("endpoint", jr.config.AgentBinaryThrift.Endpoint),
)
}

if jr.config.AgentCompactThrift.Endpoint != "" {
Expand All @@ -267,6 +274,12 @@ func (jr *jReceiver) startAgent(host component.Host) error {
return err
}
jr.agentProcessors = append(jr.agentProcessors, processor)

jr.settings.Logger.Info("Starting UDP server for Compact Thrift",
zap.String("kind", "receiver"),
zap.String("name", "jaegerreceiver"),
zap.String("endpoint", jr.config.AgentCompactThrift.Endpoint),
)
}

jr.goroutines.Add(len(jr.agentProcessors))
Expand All @@ -280,6 +293,12 @@ func (jr *jReceiver) startAgent(host component.Host) error {
if jr.config.AgentHTTPEndpoint != "" {
jr.agentServer = httpserver.NewHTTPServer(jr.config.AgentHTTPEndpoint, &notImplementedConfigManager{}, metrics.NullFactory, jr.settings.Logger)

jr.settings.Logger.Info("Starting HTTP server for Jaeger Agent",
zap.String("kind", "receiver"),
zap.String("name", "jaegerreceiver"),
zap.String("endpoint", jr.config.AgentHTTPEndpoint),
)

jr.goroutines.Add(1)
go func() {
defer jr.goroutines.Done()
Expand Down Expand Up @@ -388,6 +407,12 @@ func (jr *jReceiver) startCollector(ctx context.Context, host component.Host) er
return err
}

jr.settings.Logger.Info("Starting HTTP server for Jaeger Collector",
zap.String("kind", "receiver"),
zap.String("name", "jaegerreceiver"),
zap.String("endpoint", jr.config.HTTPServerConfig.Endpoint),
)

jr.goroutines.Add(1)
go func() {
defer jr.goroutines.Done()
Expand All @@ -411,6 +436,12 @@ func (jr *jReceiver) startCollector(ctx context.Context, host component.Host) er

api_v2.RegisterCollectorServiceServer(jr.grpc, jr)

jr.settings.Logger.Info("Starting gRPC server for Jaeger Collector",
zap.String("kind", "receiver"),
zap.String("name", "jaegerreceiver"),
zap.String("endpoint", jr.config.GRPCServerConfig.NetAddr.Endpoint),
)

jr.goroutines.Add(1)
go func() {
defer jr.goroutines.Done()
Expand Down
Loading