[grpc] extend metrics - server and client call durations

Abierto
#5,398 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
grpc, python

Línea de trabajo

Start by locating the existing gRPC client and server instrumentation, including the sync and async interceptors and their tests. Review how the project records other metrics so the new duration histograms follow established naming, units, and exporter patterns. The change is complete when incoming and outgoing RPC durations are recorded as rpc.server.call.duration and rpc.client.call.duration, with tests covering the relevant client and server paths.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

What problem do you want to solve?

grpc instrumentation only produces spans for the sync and aio client and server, but it would be useful to also have the rpc
metrics - the call durations

Describe the solution you'd like

report metrics:
• rpc.server.call.duration — histogram of the duration of the incoming RPCs, recorded by the server interceptors;
• rpc.client.call.duration — histogram of the duration of the outgoing RPCs, recorded by the client interceptors.

Describe alternatives you'd considered

No response

Additional Context

No response

Would you like to implement a fix?

Yes

Lenguaje dominante
Python
Estrellas
1.1k
Forks
1.1k
Merge medio
2 d 4 h
PR fusionados (30 d)
36

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de open-telemetry/opentelemetry-python-contrib

Todos los issues de open-telemetry/opentelemetry-python-contrib

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.