[azure-ai-agentserver-core] Standard Python logs are not exported in plain OTLP mode
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
まず、use_microsoft_opentelemetry() を呼び出している Agent Server の observability 設定を読み、次に logger_name が指定されたときに microsoft-opentelemetry が plain OTLP ロギングをどのように設定するか確認してください。issue の説明どおりに root logger 名を渡し、ホストの初期化を繰り返しても冪等性が保たれることを確認してください。plain OTLP モードで標準の Python ログが重複する handler なしに OTLP バックエンドへ届けば完了です。
索引モデルが issue の本文から書いたものです。
説明
- Package Name: azure-ai-agentserver-core
- Package Version: 2.1.0
- Related Package: microsoft-opentelemetry 1.3.9
- Operating System: Linux (containerized runtime)
- Python Version: 3.13
Describe the bug
When azure-ai-agentserver-core is configured with an OTLP endpoint but no
Application Insights connection string, standard Python logs are not exported
through the OTLP logs pipeline.
The plain OTLP path successfully creates a LoggerProvider, log record
processors, and an OTLPLogExporter. However, Agent Server does not pass a
logger_name to use_microsoft_opentelemetry(). In
microsoft-opentelemetry==1.3.9, the plain OTLP setup attaches an
OpenTelemetry LoggingHandler only when logger_name is truthy. As a result,
the provider/exporter pipeline exists but is not connected to Python's root
logger.
This produces different behavior between the two supported export modes:
- Azure Monitor mode: standard Python logs are exported.
- Plain OTLP mode: direct OTel Logs API records are exported, but
logging.info(), Agent Server logs, and library logs are not.
To Reproduce
-
Configure the process with an OTLP endpoint and no Application Insights
connection string:OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318 OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf APPLICATIONINSIGHTS_CONNECTION_STRING is unset -
Construct an Agent Server host using the default observability setup:
import logging from azure.ai.agentserver.responses import ResponsesAgentServerHost app = ResponsesAgentServerHost() logging.getLogger(__name__).warning("standard-python-log") -
Send an invocation and inspect the configured OTLP backend.
-
Observe that traces and direct OTel log records arrive, but
standard-python-logdoes not.
Expected behavior
Standard Python logging should be connected to the LoggerProvider in plain
OTLP mode, matching the logging behavior of the Azure Monitor mode.
Agent Server can provide this behavior by passing the root logger explicitly:
use_microsoft_opentelemetry(
...,
logger_name="root",
)
logging.getLogger("root") resolves to Python's root logger. This preserves
Azure Monitor behavior while activating the existing plain OTLP
LoggingHandler setup.
The implementation should remain idempotent so repeated host initialization
does not create duplicate handlers or duplicate log export.
- 主要言語
- Python
- スター
- 5.6k
- フォーク
- 3.4k
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 206
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/azure-sdk-for-python のほかの issue
-
[Teams Chatbot]: Clarify Python dev-feed publication from a branch versus PyPI release対応中かも @jianingwang123 が 3 日前に担当しました。 オープンcustomer-reported question
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Azure/azure-sdk-for-python#49548 · コメント 1 件 · リアクション 2 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
azure-ai-evaluation: a content-harm score of 0 (no harm) is parsed as NaN in _parse_content_harm_response (numeric branch uses 0 < x instead of 0 <= x)対応中かも @pujitha24 が 19 日前に担当しました。 オープンEvaluation Service Attention
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Azure/azure-sdk-for-python#49190 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Update CODEOWNERSオープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
Azure/azure-sdk-for-python#49183 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
azure-ai-evaluation: PromptyEvaluatorBase falls back to the first digit anywhere in the judge's reply, and the threshold turns a stray digit into a wrong pass/fail (15 evaluators)対応中かも @wasim-builds が 13 日前に担当しました。 オープンEvaluation Service Attention
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Azure/azure-sdk-for-python#49153 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
azure-search-documents ContentUnderstandingSkill is missing model_name and model_deployment対応中かも @wasim-builds が 13 日前に担当しました。 オープンSearch Service Attention
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Azure/azure-sdk-for-python#48555 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
Azure/azure-sdk-for-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NousResearch/hermes-agent#140958 ·
メンテナーはふだん 1 日以内に返信
-
Bisect issue233186オープンbisect
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dtcxzyw/llvm-bisect-service#548 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
sallowayma-git/IELTS-practice#248 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
anthropics/claude-plugins-official#6763 · コメント 10 件 · リアクション 10 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信