Autoconfiguration rejects OTEL_EXPORTER_OTLP_PROTOCOL=http/json
Mantenedores costumam responder em até 2 dias
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 82/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- python
- Domínio
- observability-sre
Direção de pesquisa
Leia opentelemetry/sdk/_configuration/__init__.py, especialmente _EXPORTER_BY_OTLP_PROTOCOL, e reproduza a falha com OTEL_EXPORTER_OTLP_PROTOCOL=http/json e OTEL_TRACES_EXPORTER=otlp. Adicione o mapeamento http/json ao exporter otlp_json_http existente e localize os testes de configuração do SDK para a seleção do protocolo OTLP. Concluído significa que traces, métricas e logs usam o exporter JSON HTTP em vez de gerar o erro de protocolo não suportado, com cobertura de regressão.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe your environment
OS: Debian (python:3.12-slim container)
Python version: 3.12
SDK version: 1.45.2
API version: 1.45.2
opentelemetry-distro 0.66b2, opentelemetry-exporter-otlp-json-http 0.66b2
Also checked on main (817f6d2): same table.
What happened?
http/json is one of the three values the spec allows for OTEL_EXPORTER_OTLP_PROTOCOL, and since #5374 there's an exporter for it (opentelemetry-exporter-otlp-json-http, registered as otlp_json_http for traces, metrics and logs). But _EXPORTER_BY_OTLP_PROTOCOL in opentelemetry/sdk/_configuration/__init__.py only knows grpc and http/protobuf, so the default otlp exporter fails at startup and the app runs without telemetry.
Steps to Reproduce
pip install opentelemetry-distro opentelemetry-exporter-otlp-json-http
OTEL_EXPORTER_OTLP_PROTOCOL=http/json OTEL_TRACES_EXPORTER=otlp
opentelemetry-instrument python -c "print('ok')"
Expected Result
The otlp_json_http exporter is picked, same as http/protobuf picks otlp_proto_http.
Actual Result
RuntimeError: Unsupported OTLP protocol 'http/json' is configured
Additional context
Workaround: OTEL_TRACES_EXPORTER=otlp_json_http. Mapping http/json to otlp_json_http in that table fixes it for all three signals.
Would you like to implement a fix?
Yes
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
- Linguagem predominante
- Python
- Estrelas
- 2.7k
- Forks
- 1.1k
- Merge médio
- 3d 12h
- PRs com merge (30d)
- 16
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de open-telemetry/opentelemetry-python
-
References to Archived open-telemetry/otepsTalvez já em andamento @RjyavardhanSingh assumiu há 1 dia. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
open-telemetry/opentelemetry-python#5984 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
MeterProvider raises ValueError on empty or uppercase OTEL_METRICS_EXEMPLAR_FILTERTalvez já em andamento @bishalde assumiu há 8 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
open-telemetry/opentelemetry-python#5948 · 3 comentários ·
Mantenedores costumam responder em até 2 dias
-
W3CBaggagePropagator drops a list-member over 4096 bytes that W3C Baggage requires it to propagateTalvez já em andamento @codedbyadiiii assumiu há 20 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
open-telemetry/opentelemetry-python#5913 ·
Mantenedores costumam responder em até 2 dias
-
otel.sdk.processor.{span,log}.queue.capacity uses synchronous UpDownCounter recorded once in __init__Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
open-telemetry/opentelemetry-python#5891 ·
Mantenedores costumam responder em até 2 dias
-
Prometheus map_unit incorrectly normalizes percent ratio units such as %/sTalvez já em andamento @knowprasad assumiu há 22 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
open-telemetry/opentelemetry-python#5875 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 2 dias
Todas as issues de open-telemetry/opentelemetry-python
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
raman325/lock_code_manager#1864 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
521xueweihan/HelloGitHub#4636 ·
-
bug improve content
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
opensafely/documentation#2102 ·
Mantenedores costumam responder em até 1 dia