grpc / grpc/grpc-java

Context in its own package?

オープン
#2,847 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
12.1k
フォーク
4k
平均マージ
2日 17時間
マージ済み PR(30日)
37

説明

Although `io.grpc.Context` is shipped in its own artifact, and non-gRPC users can also depend on it, the package name still causes branding issue (google/instrumentation-java/issues/162), and a practical issue with OSGI (#2727). We may consider moving it into its own package and splitting it completely from gRPC.

We have two questions to answer:
1. What should the new package name be? Probably something starting with `com.google`, but probably not `com.google.common.context` because it collides with a Google's proprietary context class.
2. How to bridge the old `Context` and `Deadline` to the new ones.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず io.grpc.Context と Deadline の API、およびパッケージ名と互換性に関する issue の 2 つの未解決の質問を確認します。ソースファイルやテストは指定されていないため、最初にこれらのクラスとその利用側がどこで定義されているかを特定します。合意されたパッケージ分割と、既存の Context および Deadline の利用者向けの明確なブリッジができれば完了です。

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

評価

技術スタック
java
領域
backend-api-design
issue の種類
リファクタリング
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

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

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