Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Elasticsearch version support

Aperta
#524 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
elasticsearch, python
Ambito
observability

Direzione di ricerca

Start with scout_apm/instruments/elasticsearch.py, especially ensure_client_instrumented and the method lookup shown in the traceback. Check the agent against Elasticsearch 6.4.0 and other relevant versions, then define the supported versions and verify that instrumentation only targets methods present in each supported client.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Currently when scout instruments older versions of elasticsearch, such as 6.4.0, there are some warnings for missing methods that were only added in later versions:

WARNING:scout_apm.instruments.elasticsearch:Failed to instrument elasticsearch.Elasticsearch.get_script_context: AttributeError("type object 'Elasticsearch' has no attribute 'get_script_context'",)
Traceback (most recent call last):
 File "venv/lib/python3.6/site-packages/scout_apm/instruments/elasticsearch.py", line 86, in ensure_client_instrumented
  method = getattr(Elasticsearch, name)
AttributeError: type object 'Elasticsearch' has no attribute 'get_script_context'
WARNING:scout_apm.instruments.elasticsearch:Failed to instrument elasticsearch.Elasticsearch.get_script_languages: AttributeError("type object 'Elasticsearch' has no attribute 'get_script_languages'",)
Traceback (most recent call last):
 File "venv/lib/python3.6/site-packages/scout_apm/instruments/elasticsearch.py", line 86, in ensure_client_instrumented
  method = getattr(Elasticsearch, name)
AttributeError: type object 'Elasticsearch' has no attribute 'get_script_languages'

Define which versions are supported, and only instrument methods that should exist in the current version.

Lingua principale
Python
Stelle
77
Fork
19
Merge medio
2g 9m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scoutapp/scout_apm_python

Tutte le issue di scoutapp/scout_apm_python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.