Question: do newer versions of exporters work with older versions of sdk?

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

メンテナーはふだん 2 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
kubernetes, python

調査の方向性

まず、Python の autoinstrumentation イメージのバージョン 0.57b0 と、0.60b0 および 0.58bx 前後の service SDK と exporter のバージョンを比較します。opentelemetry/exporter/otlp/proto/grpc/trace_exporter/init.py と exporter.py、および opentelemetry.sdk._shared_internal の import を追跡し、サポートされるバージョンの関係を明らかにします。互換性の挙動と必要なバージョンの一致が文書化されるか、再現可能な形で明確になれば完了です。

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

説明

Didn't want to report this as a bug before double checking that it is a setup issue but our services use autoinstrumentation for python via opentel operator image for kuberenetes.

However, when our services start up we saw the following:

from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
File "/src/lib/python3.12/site-packages/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/init.py", line 25, in
from opentelemetry.exporter.otlp.proto.grpc.exporter import ( # noqa: F401
File "/src/lib/python3.12/site-packages/opentelemetry/exporter/otlp/proto/grpc/exporter.py", line 85, in
from opentelemetry.sdk._shared_internal import DuplicateFilter
ImportError: cannot import name 'DuplicateFilter' from 'opentelemetry.sdk._shared_internal' (/otel-auto-instrumentation-python/opentelemetry

This occurs when our service uses a newer version of the opentel sdk such as 0.60b0 but the autoinstrumentation image being used along with it in kuberenetes is 0.57b0. It looks like the newer version of the sdk (v1.37.x-0.58bx) added in the DuplicateFilter which is used in the opentelemetry-exporter-otlp-proto-grpc.

So my question is, when using the autoinstrumentation images along with the sdk, do the versions of the sdk have to match?? Or, should newer versions be backwards compatible?

主要言語
Python
スター
2.7k
フォーク
1.1k
平均マージ
3日 12時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

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

open-telemetry/opentelemetry-python のほかの issue

open-telemetry/opentelemetry-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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