1919import org .hypertrace .core .graphql .utils .gateway .GatewayUtilsModule ;
2020import org .hypertrace .core .graphql .utils .grpc .GraphQlGrpcModule ;
2121import org .hypertrace .core .graphql .utils .schema .SchemaUtilsModule ;
22+ import org .hypertrace .core .grpcutils .client .GrpcChannelRegistry ;
2223import org .hypertrace .graphql .atttribute .scopes .HypertraceAttributeScopeModule ;
2324import org .hypertrace .graphql .config .HypertraceGraphQlServiceConfig ;
2425import org .hypertrace .graphql .entity .EntityIdModule ;
@@ -37,10 +38,15 @@ class GraphQlModule extends AbstractModule {
3738 private final HypertraceGraphQlServiceConfig config ;
3839 private final GraphQlServiceLifecycle serviceLifecycle ;
3940
41+ private final GrpcChannelRegistry grpcChannelRegistry ;
42+
4043 public GraphQlModule (
41- final HypertraceGraphQlServiceConfig config , final GraphQlServiceLifecycle serviceLifecycle ) {
44+ final HypertraceGraphQlServiceConfig config ,
45+ final GraphQlServiceLifecycle serviceLifecycle ,
46+ final GrpcChannelRegistry grpcChannelRegistry ) {
4247 this .config = config ;
4348 this .serviceLifecycle = serviceLifecycle ;
49+ this .grpcChannelRegistry = grpcChannelRegistry ;
4450 }
4551
4652 @ Override
@@ -50,7 +56,7 @@ protected void configure() {
5056 bind (GraphQlServiceLifecycle .class ).toInstance (this .serviceLifecycle );
5157 bind (Clock .class ).toInstance (Clock .systemUTC ());
5258 install (new GraphQlRequestContextModule ());
53- install (new GraphQlGrpcModule ());
59+ install (new GraphQlGrpcModule (this . grpcChannelRegistry ));
5460 install (new GraphQlSchemaRegistryModule ());
5561 install (new GraphQlDeserializationRegistryModule ());
5662 install (new HypertraceAttributeScopeModule ());
0 commit comments