Support Otlp Tracing's GRPC port from service connections
Otlp Tracing's exporter is configured using Transport. Current support for service connections read the mapped port for HTTP transport 4318. This commits adds support to read port for GRPC transport 4317. See gh-41333
This commit is contained in:
committed by
Moritz Halbritter
parent
f6505f7a18
commit
7baa553760
@@ -32,6 +32,7 @@ class OpenTelemetryTracingDockerComposeConnectionDetailsFactoryIntegrationTests
|
||||
|
||||
@DockerComposeTest(composeFile = "otlp-compose.yaml", image = TestImage.OPENTELEMETRY)
|
||||
void runCreatesConnectionDetails(OtlpTracingConnectionDetails connectionDetails) {
|
||||
assertThat(connectionDetails.getGrpcEndpoint()).startsWith("http://").endsWith("/v1/traces");
|
||||
assertThat(connectionDetails.getUrl()).startsWith("http://").endsWith("/v1/traces");
|
||||
}
|
||||
|
||||
|
||||
@@ -2,4 +2,5 @@ services:
|
||||
otlp:
|
||||
image: '{imageName}'
|
||||
ports:
|
||||
- '4317'
|
||||
- '4318'
|
||||
|
||||
Reference in New Issue
Block a user