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

Aberta
#259 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
45/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
cpp
Domínio
observability

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
MATLAB
Estrelas
21
Forks
5
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de mathworks/OpenTelemetry-MATLAB

Todas as issues de mathworks/OpenTelemetry-MATLAB

Issues semelhantes

Mais issues de MATLAB

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.