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

Otel: Standardize key constants

Aperta
#1,294 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@vprashrex ci sta già lavorando.

Dal 20/10/2026.

  • #1306 di @vprashrex — chiusa senza merge

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Is your feature request related to a problem?
The same concept goes to Sentry under different keys and types, so one filter never matches all signals.

Concept Keys in use today
Org / project tenant.org_id, kaapi.organization_id, gen_ai.request.organization_id; logs: org_id and organization_id
Job id llm.job_id, guardrails.job_id, collection.job_id
Provider / model llm.provider, llm.request.model next to gen_ai.provider.name, gen_ai.request.model
Request id kaapi.trace_id vs correlation_id
Metric names llm.call.total / llm.call.errors vs http.server.request.count / .error
No namespace completion_type, route_category

Describe the solution you'd like

  • Add app/core/telemetry/constants.py with one name per concept (tenant.org_id, tenant.project_id as strings, job.id, correlation_id, llm.completion_type, http.route_category, metric names).
  • Take GenAI keys from opentelemetry.semconv._incubating.attributes.gen_ai_attributes.
  • Use these constants everywhere (spans, tags, metrics, log_context); drop kaapi.* and gen_ai.request.organization_id/project_id.
  • Add the rule to docs/wiki/cross-cutting/observability.md.

Before merging, update the Sentry dashboards and alerts that use the old keys. Module and API version tags are tracked in #1305.

Lingua principale
Python
Stelle
18
Fork
11
Merge medio
2g 2h
PR unite (30g)
33

Preparare l'ambiente

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 ProjectTech4DevAI/kaapi-backend

Tutte le issue di ProjectTech4DevAI/kaapi-backend

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.