Skip to content

Commit

Permalink
added transport type to otlp reciever
Browse files Browse the repository at this point in the history
Signed-off-by: chahatsagarmain <[email protected]>
  • Loading branch information
chahatsagarmain committed Dec 7, 2024
1 parent bd8acca commit db9367e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/collector/app/handler/otlp_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
otlp2jaeger "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger"
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/component/componentstatus"
"go.opentelemetry.io/collector/config/confignet"
"go.opentelemetry.io/collector/config/configtelemetry"
"go.opentelemetry.io/collector/consumer"
"go.opentelemetry.io/collector/extension"
Expand Down Expand Up @@ -59,6 +60,7 @@ func startOTLPReceiver(
) (receiver.Traces, error) {
otlpReceiverConfig := otlpFactory.CreateDefaultConfig().(*otlpreceiver.Config)
otlpReceiverConfig.GRPC = &options.OTLP.GRPC
otlpReceiverConfig.GRPC.NetAddr.Transport = confignet.TransportTypeTCP
otlpReceiverConfig.HTTP.ServerConfig = &options.OTLP.HTTP
statusReporter := func(ev *componentstatus.Event) {
// TODO this could be wired into changing healthcheck.HealthCheck
Expand Down

0 comments on commit db9367e

Please sign in to comment.