[Bug] Replacing JaegerGrpcSpanExporter with OtlpGrpcSpanExporter is not working
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
調査の方向性
core/src/main/java/io/temporal/samples/tracing の tracing sample から始めて JaegerUtils.java を調べ、次に sample のローカル Jaeger セットアップと OtlpGrpcSpanExporter の要件を比較します。ドキュメントに記載された依存関係と exporter の置き換えを使用して、UNIMPLEMENTED エラーを再現します。sample が、非推奨の JaegerGrpcSpanExporter に依存せず、ローカルの Jaeger インスタンスで確認できる span をエクスポートできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I am trying the tracing example given at https://github.com/temporalio/samples-java/tree/main/core/src/main/java/io/temporal/samples/tracing
I am able to bring up this and able to see the traces in the Jaeger running in my local docker.
But now JaegerGrpcSpanExporter is deprecated, so the suggestion is to use OtlpGrpcSpanExporter.
So to the above working project I have made two changes.
- include implementation "io.opentelemetry:opentelemetry-exporter-otlp:1.32.0"
- Replace JaegerGrpcSpanExporter with OtlpGrpcSpanExporter in JaegerUtils.java
After this change I am not seeing any traces in Jaeger and I see below errors in my service.
Nov 27, 2023 2:39:02 PM io.opentelemetry.exporter.internal.grpc.GrpcExporterUtil logUnimplemented
SEVERE: Failed to export spans. Server responded with UNIMPLEMENTED. This usually means that your collector is not configured with an otlp receiver in the "pipelines" section of the configuration. If export is not desired and you are using OpenTelemetry autoconfiguration or the javaagent, disable export by setting OTEL_TRACES_EXPORTER=none. Full error message: unknown service opentelemetry.proto.collector.trace.v1.TraceService
Please let me know, if I need to add any extra configs to my application.yml
I tried with below two things, it did not help.
-
otel:
traces:
exporter: jaeger
exporter:
jaeger:
endpoint: http://localhost:14250 -
Setting environment variable OTEL_TRACES_EXPORTER=none.
If you can modify this sample to work with OtlpGrpcSpanExporter instead of JaegerGrpcSpanExporter, that would be great.
- 主要言語
- Java
- スター
- 258
- フォーク
- 189
- 平均マージ
- 6日 4時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
temporalio/samples-java のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
temporalio/samples-java#770 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
temporalio/samples-java#749 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
temporalio/samples-java#687 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
temporalio/samples-java#635 · コメント 1 件 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
temporalio/samples-java#606 · リアクション 4 件 ·
temporalio/samples-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
infinispan/infinispan#18150 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
opensearch-project/k-NN#3597 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100