-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove grpcio #153
Remove grpcio #153
Conversation
5d79e66
to
3a84c54
Compare
7437492
to
fafa071
Compare
❌ Deploy Preview for apollo-router-docs failed. 🔨 Explore the source changes: fafa071 🔍 Inspect the deploy log: https://app.netlify.com/sites/apollo-router-docs/deploys/6197afcc8015120007aa6ac3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass, this looks good to me overall, I would however rather have us refer to Grpc* instead of Tonic*, both in the structures we define and the test files
tbh we could just remove the tls feature and have it always built with otlp-grpc. It increases the produced binary by only 2MB (1MB when stripped) and does not increase the requirements on the system: it load the same set of dlls as a router built without the tls feature |
|
so the License checker apparently did not test with all the features. @o0Ignition0o how should we add the license for ring since it's not well detected? |
Ok this has just been merged, CI should pass once you rebase! |
e541826
to
b77d0ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre aproving this, There's still a mention of TonicExporter
which IMO should be GrpcExporter
or something. otherwise LGTM
#[serde(deny_unknown_fields)] | ||
pub struct Exporter { | ||
pub struct TonicExporter { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GrpcExporter ?
We do not need to use two different gRPC implementations for OTLP, and grpcio greatly increases the compilation times and CI cache size, so we're choosing to use tonic instead * make the OTLP exporters non exclusive We should be able to build a router with both OTLP/HTTP and OTLP/gRPC exporters update the opentelemetry dependency to get access to SpanExporterBuilder that was not public before
* The cargo feature name should match the actual feature, not the implementation detail * allow empty configuration under http or grpc exporter with this we can configure the HTTP or gRPC exporter while using default values, like: opentelemetry: otlp: tracing: exporter: http:
…defer-in-introspection support defer in introspection queries
Fix #150
supplant #147
This PR includes:
otlp-tonic
feature tootlp-grpc
tls
feature forcesotlp-grpc
since it cannot be used independently (maybe we could merge them?)