Replies: 3 comments 7 replies
-
I agree with the benefits of defaulting to HTTP over gRPC. I just opened #2857. OTLP/HTTP should default to use port 4318 not 4317. The one concern I might have with changing the default is if there's a potential for this causing a breaking change for folks. I'm imagining a user who has explicitly configured their environment allowing 4317 but not 4318... though maybe this would be an unlikely problem since folks are most likely overriding the default endpoint configuration. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that if the SDK changed the default it would certainly break deploys in the environments under my purview. We're setting the endpoint but not specifying the protocol. When we set everything up the protocol setting didn't even exist 🤣 I think we may have to live with this. |
Beta Was this translation helpful? Give feedback.
-
@pjanotti Yes I would vote to keep the current default. I just went and double-checked in the 1.1.0 version of OpenTelemetry.Exporter.OpenTelemetryProtocol we didn't have a protocol option because it only supported gRPC. So if 1.2.0 (or whatever 1.* version) is released and suddenly switches to HTTP by default I think that would be breaking. We could do in 2.* version? |
Beta Was this translation helpful? Give feedback.
-
(Edit 03/01/22: per discussion below, tracking future exporter change via #2959)
As per latest spec HTTP is preferred over gRPC, see https://github.com/open-telemetry/opentelemetry-specification/blob/ce50e4634efcba8da445cc23523243cb893905cb/specification/protocol/exporter.md?plain=1#L111-L114 and respective PR discussion: open-telemetry/opentelemetry-specification#1969
There is an exception for already released SDKs but I would like to consider a change for the following reasons:
cc @open-telemetry/dotnet-instrumentation-approvers @open-telemetry/dotnet-approvers
Beta Was this translation helpful? Give feedback.
All reactions