-
Notifications
You must be signed in to change notification settings - Fork 558
[EXPORTER] Delegate all API calls of gRPC into opentelemetry_exporter_otlp_grpc_client, and make it contains all symbols needed.
#2005
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
Changes from all commits
b9acee5
cdfe4d0
dff5da5
e497b24
e01d900
88eadf6
9db7266
1d20c56
33a625e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,60 @@ std::unique_ptr<grpc::ClientContext> OtlpGrpcClient::MakeClientContext( | |
| return context; | ||
| } | ||
|
|
||
| std::unique_ptr<grpc::CompletionQueue> OtlpGrpcClient::MakeCompletionQueue() | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this method added, as it is not been used anywhere - to prevent stripping of grpc symbols ?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I plan use it to implement concurrency exporting in the future. Also , the |
||
| { | ||
| return std::unique_ptr<grpc::CompletionQueue>(new grpc::CompletionQueue()); | ||
| } | ||
|
|
||
| std::unique_ptr<proto::collector::trace::v1::TraceService::StubInterface> | ||
| OtlpGrpcClient::MakeTraceServiceStub(const OtlpGrpcExporterOptions &options) | ||
| { | ||
| return proto::collector::trace::v1::TraceService::NewStub(MakeChannel(options)); | ||
| } | ||
|
|
||
| std::unique_ptr<proto::collector::metrics::v1::MetricsService::StubInterface> | ||
| OtlpGrpcClient::MakeMetricsServiceStub(const OtlpGrpcExporterOptions &options) | ||
| { | ||
| return proto::collector::metrics::v1::MetricsService::NewStub(MakeChannel(options)); | ||
| } | ||
|
|
||
| #ifdef ENABLE_LOGS_PREVIEW | ||
| std::unique_ptr<proto::collector::logs::v1::LogsService::StubInterface> | ||
| OtlpGrpcClient::MakeLogsServiceStub(const OtlpGrpcExporterOptions &options) | ||
| { | ||
| return proto::collector::logs::v1::LogsService::NewStub(MakeChannel(options)); | ||
| } | ||
| #endif | ||
|
|
||
| grpc::Status OtlpGrpcClient::DelegateExport( | ||
| proto::collector::trace::v1::TraceService::StubInterface *stub, | ||
| grpc::ClientContext *context, | ||
| const proto::collector::trace::v1::ExportTraceServiceRequest &request, | ||
| proto::collector::trace::v1::ExportTraceServiceResponse *response) | ||
| { | ||
| return stub->Export(context, request, response); | ||
| } | ||
|
|
||
| grpc::Status OtlpGrpcClient::DelegateExport( | ||
| proto::collector::metrics::v1::MetricsService::StubInterface *stub, | ||
| grpc::ClientContext *context, | ||
| const proto::collector::metrics::v1::ExportMetricsServiceRequest &request, | ||
| proto::collector::metrics::v1::ExportMetricsServiceResponse *response) | ||
| { | ||
| return stub->Export(context, request, response); | ||
| } | ||
|
|
||
| #ifdef ENABLE_LOGS_PREVIEW | ||
| grpc::Status OtlpGrpcClient::DelegateExport( | ||
| proto::collector::logs::v1::LogsService::StubInterface *stub, | ||
| grpc::ClientContext *context, | ||
| const proto::collector::logs::v1::ExportLogsServiceRequest &request, | ||
| proto::collector::logs::v1::ExportLogsServiceResponse *response) | ||
| { | ||
| return stub->Export(context, request, response); | ||
| } | ||
| #endif | ||
|
|
||
| } // namespace otlp | ||
| } // namespace exporter | ||
| OPENTELEMETRY_END_NAMESPACE | ||
Uh oh!
There was an error while loading. Please reload this page.