Avoid calling C++ code in getTracer or startSpan when telemetry is disabled

Abierto
#259 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

The issue names getTracer and startSpan and asks whether they can skip the C++ call through the MEX layer when no global TracerProvider is set. Start by tracing those two entry points to find where the MATLAB code decides telemetry is disabled and where it crosses into C++. Done means the disabled path returns a no-op tracer or span without calling C++, and the existing tests still pass.

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

Descripción

enhancement performance

When telemetry is disabled, for example no TracerProvider is set as the global instance, see if there is a way to avoid calling C++ at all. With telemetry disabled, the resulting tracer or span are non-recording and no-ops anyways. If we can avoid calling C++ in those case altogether it will eliminate the time spent in calling through the MEX layer, and therefore optimize the performance.

Lenguaje dominante
MATLAB
Estrellas
21
Forks
5
Métricas de merge de PR
Sin PR fusionados en 30 d

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 mathworks/OpenTelemetry-MATLAB

Todos los issues de mathworks/OpenTelemetry-MATLAB

Issues similares

Más issues de MATLAB

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.