Add OpenTelemetry Logging Service Connection from LgtmStackContainer and Docker Compose

See gh-42174
This commit is contained in:
Eddú Meléndez
2024-08-29 12:02:02 -06:00
committed by Moritz Halbritter
parent 6cd6f75664
commit 793e9a8795
7 changed files with 180 additions and 3 deletions

View File

@@ -31,12 +31,15 @@ import org.springframework.boot.docker.compose.service.connection.DockerComposeC
class OpenTelemetryLoggingDockerComposeConnectionDetailsFactory
extends DockerComposeConnectionDetailsFactory<OtlpLoggingConnectionDetails> {
private static final String[] OPENTELEMETRY_IMAGE_NAMES = { "otel/opentelemetry-collector-contrib",
"grafana/otel-lgtm" };
private static final int OTLP_GRPC_PORT = 4317;
private static final int OTLP_HTTP_PORT = 4318;
OpenTelemetryLoggingDockerComposeConnectionDetailsFactory() {
super("otel/opentelemetry-collector-contrib",
super(OPENTELEMETRY_IMAGE_NAMES,
"org.springframework.boot.actuate.autoconfigure.logging.opentelemetry.otlp.OtlpLoggingAutoConfiguration");
}