Skip to content

Commit 2877963

Browse files
fix(ad): pin grpc-netty-shaded to gRPC stack version
flagd:0.13.1 transitively pulls grpc-netty-shaded:1.79.0 which doesn't implement ServerImplBuilder.buildClientTransportServers(List, MetricRecorder) added in gRPC 1.81.0, causing AbstractMethodError at startup. Add an explicit grpc-netty-shaded dependency at ${grpcVersion} to align it with the rest of the gRPC stack.
1 parent 15a5d35 commit 2877963

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ the release.
1010
* [ad] Expose a Prometheus `/metrics` endpoint (default port `9465`) using the
1111
Prometheus Java client library, with a custom counter
1212
`demo_ad_served_total{category}`, and scrape it from the OTel Collector via a
13-
new `prometheus/ad` receiver to demo Prometheus metric ingestion.
13+
new `prometheus/ad` receiver to demo Prometheus metric ingestion. Also pins
14+
`grpc-netty-shaded` to the same version as the rest of the gRPC stack to fix
15+
an `AbstractMethodError` caused by the flagd provider pulling an older
16+
transitive version.
1417
* [telemetry-docs] Add a new service to provide telemetry documentation based
1518
on Weaver
1619
([#2794](https://github.com/open-telemetry/opentelemetry-demo/pull/2794))

src/ad/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ dependencies {
5050
"io.grpc:grpc-protobuf:${grpcVersion}",
5151
"io.grpc:grpc-stub:${grpcVersion}",
5252
"io.grpc:grpc-netty:${grpcVersion}",
53+
"io.grpc:grpc-netty-shaded:${grpcVersion}",
5354
"io.grpc:grpc-services:${grpcVersion}",
5455
"io.opentelemetry:opentelemetry-api",
5556
"io.opentelemetry:opentelemetry-sdk",

0 commit comments

Comments
 (0)