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

オープン
#259 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
observability

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
MATLAB
スター
21
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mathworks/OpenTelemetry-MATLAB のほかの issue

mathworks/OpenTelemetry-MATLAB の issue をすべて見る

似ている issue

MATLAB の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。