OTLP gRPC exporter reads RetryInfo only from the google.rpc.retryinfo-bin trailer, not from the status details
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- grpc, python
- Área
- backend-api-design
Línea de trabajo
Start in exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py around the RetryInfo trailer handling at lines 432–440. Read the gRPC status details handling and the test in exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_exporter_mixin.py, which currently mocks only google.rpc.retryinfo-bin. Done means RetryInfo in grpc-status-details-bin sets the retry delay, with the existing trailer behavior covered as a fallback.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe your environment
opentelemetry-exporter-otlp-proto-grpc 1.45.2 (the code is the same on main).
What happened?
The OTLP gRPC exporter reads the server's RetryInfo only from a trailer named google.rpc.retryinfo-bin:
The OTLP specification tells a server to send RetryInfo as a detail of the gRPC status (Failures, OTLP/gRPC Throttling). Its sample server code uses status.New(...).WithDetails(&errdetails.RetryInfo{...}). gRPC sends those details in the grpc-status-details-bin trailer, as an encoded google.rpc.Status. A server that follows the specification, such as one written with grpc-go or the OpenTelemetry Collector's receiver, sends no google.rpc.retryinfo-bin trailer.
So the Python exporter never sees the delay that such a server asks for. It falls back to its own backoff of 2**n * uniform(0.8, 1.2) seconds. The OTel Go SDK, the Collector's exporter and the .NET exporter read the delay from the status details.
Steps to Reproduce
- Run a gRPC OTLP server whose
ExportreturnsUNAVAILABLE(orRESOURCE_EXHAUSTED) built withstatus.New(code, msg).WithDetails(&errdetails.RetryInfo{RetryDelay: durationpb.New(3 * time.Second)}). - Export a span with
OTLPSpanExporterto it. - Log the time of each attempt on the server.
Expected Result
The exporter waits the 3 s that RetryInfo asks for before it retries.
Actual Result
The exporter retries after about 1 s, then 2 s, then 4 s: its own backoff. The RetryInfo in grpc-status-details-bin is ignored.
Additional context
A fix could decode grpc-status-details-bin as google.rpc.status_pb2.Status (or use grpc_status.rpc_status.from_call), take the RetryInfo from its details, and keep the google.rpc.retryinfo-bin lookup as a fallback. The test at exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_exporter_mixin.py mocks only the google.rpc.retryinfo-bin trailer.
- Lenguaje dominante
- Python
- Estrellas
- 2.7k
- Forks
- 1.1k
- Merge medio
- 4 d 13 min
- PR fusionados (30 d)
- 38
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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-python
-
opentelemetry-configuration: OTLP HTTP exporter does not validate TLS files exist at startupPosiblemente ocupada @Dotify71 la tomó hace 5 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
open-telemetry/opentelemetry-python#5928 ·
Los mantenedores suelen responder en 2 días
-
W3CBaggagePropagator drops a list-member over 4096 bytes that W3C Baggage requires it to propagatePosiblemente ocupada @codedbyadiiii la tomó hace 7 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
open-telemetry/opentelemetry-python#5913 ·
Los mantenedores suelen responder en 2 días
-
otel.sdk.processor.{span,log}.queue.capacity uses synchronous UpDownCounter recorded once in __init__Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
open-telemetry/opentelemetry-python#5891 ·
Los mantenedores suelen responder en 2 días
-
Prometheus map_unit incorrectly normalizes percent ratio units such as %/sPosiblemente ocupada @knowprasad la tomó hace 10 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
open-telemetry/opentelemetry-python#5875 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
OTLP HTTP exporter reports a 3xx response as a successful export, so redirected batches are dropped without any logPosiblemente ocupada @d4rshnn la tomó hace 18 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
open-telemetry/opentelemetry-python#5865 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de open-telemetry/opentelemetry-python
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
docling-project/docling-pipelines#669 ·
Los mantenedores suelen responder en 1 día
-
blocked kind/enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
opendatahub-io/agent-eval-harness#329 · 2 comentarios · 1 reacción ·
-
cc_wrapper crashes with ValueError on Windows when a path is on another drivePosiblemente ocupada @TrapsterDK la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
tweag/rules_haskell#2492 ·
Los mantenedores suelen responder en 1 día