prometheus-metrics-core makes io.prometheus.metrics.tracer.initializer a mandatory OSGi import although the code supports its absence
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #2528 @kalayciburak による — マージ済み
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java
- 領域
- build-system
調査の方向性
prometheus-metrics-core の maven-bundle-plugin の手順から始め、生成された OSGi マニフェストで io.prometheus.metrics.tracer.initializer の import を確認します。import をオプションにしてから、OSGi テストまたは micrometer-osgi-test-tests を実行し、prometheus-metrics-tracer-initializer なしでバンドルが解決されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
prometheus-metrics-core 1.9.0 ships Import-Package: io.prometheus.metrics.tracer.initializer;version="[1.9,2)" with no resolution:=optional, so an OSGi deployment that leaves out prometheus-metrics-tracer-initializer cannot resolve the bundle.
The code is written for that artifact to be absent. ExemplarSampler.sampleTraceContextLabels() calls SpanContextSupplier through its fully qualified name on purpose, and the comment says why:
// Using the qualified name so that Micrometer can exclude the dependency on
// prometheus-metrics-tracer-initializer
// as they provide their own implementation of SpanContextSupplier.
// If we had an import statement for SpanContextSupplier the dependency would be needed in any case.
The block that follows is guarded with catch (NoClassDefFoundError ignored).
Micrometer does exactly what that comment describes: micrometer-registry-prometheus excludes the artifact from prometheus-metrics-core. On the Maven side it works. In OSGi it does not resolve:
⇒ Bundle: micrometer-osgi-test-tests cannot be resolved
⇒ because Import-Package requirement for: io.micrometer.prometheusmetrics could not be provided
⇒ because Import-Package requirement for: io.prometheus.metrics.core.exemplars; version=[1.9.0,2.0.0)
⇒ because Import-Package requirement for: io.prometheus.metrics.tracer.initializer; version=[1.9.0,2.0.0)
Dropping prometheus-metrics-tracer-initializer onto the runtime makes it resolve and the tests pass, so that import is the only thing missing.
Marking it optional in the maven-bundle-plugin instructions for prometheus-metrics-core would line the manifest up with what the code already allows, the same way _exportcontents was added to prometheus-metrics-exposition-formats for #2395.
- 主要言語
- Java
- スター
- 2.3k
- フォーク
- 833
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 73
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
prometheus/client_java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
prometheus/client_java#2416 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Switch Micrometer compatibility workflow to upstream once typed-descriptor path becomes default再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
prometheus/client_java#2182 ·
メンテナーはふだん 1 日以内に返信
-
OpenMetrics 2.0: option to keep _total and unit suffixes, so switching from OM1 doesn't rename series対応中かも @arnabnandy7 が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
prometheus/client_java#2518 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Proposal: Prometheus HTTP API client module (prometheus-metrics-api-client)再び着手できるかも @arnabnandy7 が 83 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
prometheus/client_java#2306 · コメント 10 件 · リアクション 4 件 ·
メンテナーはふだん 1 日以内に返信
-
Improve Summary quantiles with DataSketches再び着手できるかも @ADITYA-CODE-SOURCE が 156 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 32/100
prometheus/client_java#2084 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
prometheus/client_java の issue をすべて見る
似ている issue
-
[Bug] AI unread message badge counts a batch of new bubbles as one message対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
apache/rocketmq-dashboard#5784 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
PCL-Community/PCL-CE#3658 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
apache/skywalking#14127 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Team/Identity Server Core Type/Improvement U2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
wso2/product-is#28553 ·
メンテナーはふだん 1 日以内に返信