AutoConfigure SDK doesn't behave in the same way as the java agent regarding OTLP protocol
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- java
- Área
- observability
Línea de trabajo
Comienza comparando cómo Java agent y AutoConfigure SDK gestionan el endpoint OTLP y las variables de entorno del protocolo. Reproduce la configuración indicada con la ruta del endpoint OTLP e inspecciona la validación de OtlpConfigUtil descrita en el stack trace. Se considera terminado cuando la misma configuración se comporta de forma coherente en ambas configuraciones sin requerir un ajuste de protocolo adicional.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
For an application using the java agent, we can publish metrics using OTLP exporter with the following configurations:
OTEL_SERVICE_NAME="some-service-name"
OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_ENDPOINT="https://prometheus.mycompany.net/api/v1/otlp" # OTLP Receiver in Prometheus
OTEL_TRACES_EXPORTER=none
OTEL_LOGS_EXPORTER=none
For another application, using the AutoConfigure SDK, we face the following error:
io.opentelemetry.sdk.autoconfigure.spi.ConfigurationException: OTLP endpoint must not have a path: /api/v1/otlp
at io.opentelemetry.exporter.otlp.internal.OtlpConfigUtil.validateEndpoint(OtlpConfigUtil.java:375) ~[opentelemetry-exporter-otlp-1.42.1.jar:1.42.1]
It seems to assume gRPC by default, which doesn't allow a path. We have had to explicitly set OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf for it to work fine.
What did you expect to see?
I expected the same configuration to be needed if using the java agent or not.
What version and what artifacts are you using?
Artifacts: opentelemetry-api, opentelemetry-sdk-extension-autoconfigure, opentelemetry-exporter-otlp
Version: v1.42.1
How did you reference these artifacts? pom.xml with the Maven BOM
Environment
Compiler: 11
OS: CentOS Stream 8
- Lenguaje dominante
- Java
- Estrellas
- 2.5k
- Forks
- 1.1k
- Merge medio
- 5 d 11 h
- PR fusionados (30 d)
- 41
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de open-telemetry/opentelemetry-java
-
`B3PropagatorExtractorMultipleHeaders` allocates when headers are missingPosiblemente ocupada @Eliot5566 la tomó hoy. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
open-telemetry/opentelemetry-java#9065 ·
Los mantenedores suelen responder en 3 días
-
[incubator] ComposableProbabilitySampler does not validate ratio rangePosiblemente ocupada @eminfikret la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
open-telemetry/opentelemetry-java#9046 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
PrometheusComponentProvider promotes all resource attributes when resource_constant_labels is empty ({})Posiblemente ocupada @rooks-ns la tomó hace 19 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
open-telemetry/opentelemetry-java#9014 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Fix `otel.sdk.log.created` counting semanticsPosiblemente ocupada @anuraaga la tomó hace 112 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
open-telemetry/opentelemetry-java#8688 ·
Los mantenedores suelen responder en 3 días
-
SdkSpanBuilder drops invalid parent TraceState when IdGenerator.generatesRandomTraceIds() is truePosiblemente ocupada @Eliot5566 la tomó hoy. AbiertoBug SDK
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
open-telemetry/opentelemetry-java#9062 · 1 comentario ·
Los mantenedores suelen responder en 3 días
Todos los issues de open-telemetry/opentelemetry-java
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
micronaut-projects/micronaut-core#14585 ·
Los mantenedores suelen responder en 1 día
-
Mend: dependency security vulnerability untriaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
opensearch-project/cross-cluster-replication#1805 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 3 días
-
feature request needs triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100
TeamNewPipe/NewPipe#14083 ·
Los mantenedores suelen responder en 1 día
-
NeoForge 安装任务的子任务描述有误Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
PCL-Community/PCL-CE#3907 ·
Los mantenedores suelen responder en 1 día