The OTLP gRPC client contains utility functions of gRPC.
Definition at line 105 of file includes/opentelemetry/exporters/otlp/otlp_grpc_client.h.
Public Member Functions | |
| OtlpGrpcClient (const OtlpGrpcClientOptions &options) | |
| ~OtlpGrpcClient () | |
| OtlpGrpcClient (const OtlpGrpcClient &)=delete | |
| OtlpGrpcClient (OtlpGrpcClient &&)=delete | |
| OtlpGrpcClient & | operator= (const OtlpGrpcClient &)=delete |
| OtlpGrpcClient & | operator= (OtlpGrpcClient &&)=delete |
| std::unique_ptr< proto::collector::trace::v1::TraceService::StubInterface > | MakeTraceServiceStub () |
| Create trace service stub to communicate with the OpenTelemetry Collector. More... | |
| std::unique_ptr< proto::collector::metrics::v1::MetricsService::StubInterface > | MakeMetricsServiceStub () |
| Create metrics service stub to communicate with the OpenTelemetry Collector. More... | |
| std::unique_ptr< proto::collector::logs::v1::LogsService::StubInterface > | MakeLogsServiceStub () |
| Create logs service stub to communicate with the OpenTelemetry Collector. More... | |
| void | AddReference (OtlpGrpcClientReferenceGuard &guard, const OtlpGrpcClientOptions &options) noexcept |
| bool | RemoveReference (OtlpGrpcClientReferenceGuard &guard) noexcept |
| Reomve reference fro a guard object. More... | |
| bool | ForceFlush (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept |
| Force flush the gRPC client. More... | |
| bool | Shutdown (OtlpGrpcClientReferenceGuard &guard, std::chrono::microseconds timeout=std::chrono::microseconds(0)) noexcept |
| Shut down the gRPC client. More... | |
| std::shared_ptr< OtlpGrpcClientAsyncData > | MutableAsyncData (const OtlpGrpcClientOptions &options) |
| bool | IsShutdown () const noexcept |
| OtlpGrpcClient (const OtlpGrpcClientOptions &options) | |
| ~OtlpGrpcClient () | |
| OtlpGrpcClient (const OtlpGrpcClient &)=delete | |
| OtlpGrpcClient (OtlpGrpcClient &&)=delete | |
| OtlpGrpcClient & | operator= (const OtlpGrpcClient &)=delete |
| OtlpGrpcClient & | operator= (OtlpGrpcClient &&)=delete |
| std::unique_ptr< proto::collector::trace::v1::TraceService::StubInterface > | MakeTraceServiceStub () |
| Create trace service stub to communicate with the OpenTelemetry Collector. More... | |
| std::unique_ptr< proto::collector::metrics::v1::MetricsService::StubInterface > | MakeMetricsServiceStub () |
| Create metrics service stub to communicate with the OpenTelemetry Collector. More... | |
| std::unique_ptr< proto::collector::logs::v1::LogsService::StubInterface > | MakeLogsServiceStub () |
| Create logs service stub to communicate with the OpenTelemetry Collector. More... | |
| void | AddReference (OtlpGrpcClientReferenceGuard &guard, const OtlpGrpcClientOptions &options) noexcept |
| bool | RemoveReference (OtlpGrpcClientReferenceGuard &guard) noexcept |
| Reomve reference fro a guard object. More... | |
| bool | ForceFlush (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept |
| Force flush the gRPC client. More... | |
| bool | Shutdown (OtlpGrpcClientReferenceGuard &guard, std::chrono::microseconds timeout=std::chrono::microseconds(0)) noexcept |
| Shut down the gRPC client. More... | |
| std::shared_ptr< OtlpGrpcClientAsyncData > | MutableAsyncData (const OtlpGrpcClientOptions &options) |
| bool | IsShutdown () const noexcept |
Static Public Member Functions | |
| static std::string | GetGrpcTarget (const std::string &endpoint) |
| static std::shared_ptr< grpc::Channel > | MakeChannel (const OtlpGrpcClientOptions &options) |
| Create gRPC channel from the exporter options. More... | |
| static std::unique_ptr< grpc::ClientContext > | MakeClientContext (const OtlpGrpcClientOptions &options) |
| Create gRPC client context to call RPC. More... | |
| static grpc::Status | DelegateExport (proto::collector::trace::v1::TraceService::StubInterface *stub, std::unique_ptr< grpc::ClientContext > &&context, std::unique_ptr< google::protobuf::Arena > &&arena, proto::collector::trace::v1::ExportTraceServiceRequest &&request, proto::collector::trace::v1::ExportTraceServiceResponse *response) |
| static grpc::Status | DelegateExport (proto::collector::metrics::v1::MetricsService::StubInterface *stub, std::unique_ptr< grpc::ClientContext > &&context, std::unique_ptr< google::protobuf::Arena > &&arena, proto::collector::metrics::v1::ExportMetricsServiceRequest &&request, proto::collector::metrics::v1::ExportMetricsServiceResponse *response) |
| static grpc::Status | DelegateExport (proto::collector::logs::v1::LogsService::StubInterface *stub, std::unique_ptr< grpc::ClientContext > &&context, std::unique_ptr< google::protobuf::Arena > &&arena, proto::collector::logs::v1::ExportLogsServiceRequest &&request, proto::collector::logs::v1::ExportLogsServiceResponse *response) |
| static std::string | GetGrpcTarget (const std::string &endpoint) |
| static std::shared_ptr< grpc::Channel > | MakeChannel (const OtlpGrpcClientOptions &options) |
| Create gRPC channel from the exporter options. More... | |
| static std::unique_ptr< grpc::ClientContext > | MakeClientContext (const OtlpGrpcClientOptions &options) |
| Create gRPC client context to call RPC. More... | |
| static grpc::Status | DelegateExport (proto::collector::trace::v1::TraceService::StubInterface *stub, std::unique_ptr< grpc::ClientContext > &&context, std::unique_ptr< google::protobuf::Arena > &&arena, proto::collector::trace::v1::ExportTraceServiceRequest &&request, proto::collector::trace::v1::ExportTraceServiceResponse *response) |
| static grpc::Status | DelegateExport (proto::collector::metrics::v1::MetricsService::StubInterface *stub, std::unique_ptr< grpc::ClientContext > &&context, std::unique_ptr< google::protobuf::Arena > &&arena, proto::collector::metrics::v1::ExportMetricsServiceRequest &&request, proto::collector::metrics::v1::ExportMetricsServiceResponse *response) |
| static grpc::Status | DelegateExport (proto::collector::logs::v1::LogsService::StubInterface *stub, std::unique_ptr< grpc::ClientContext > &&context, std::unique_ptr< google::protobuf::Arena > &&arena, proto::collector::logs::v1::ExportLogsServiceRequest &&request, proto::collector::logs::v1::ExportLogsServiceResponse *response) |
| exporter::otlp::OtlpGrpcClient::OtlpGrpcClient | ( | const OtlpGrpcClientOptions & | options | ) |
| exporter::otlp::OtlpGrpcClient::~OtlpGrpcClient | ( | ) |
|
delete |
|
delete |
| exporter::otlp::OtlpGrpcClient::OtlpGrpcClient | ( | const OtlpGrpcClientOptions & | options | ) |
| exporter::otlp::OtlpGrpcClient::~OtlpGrpcClient | ( | ) |
|
delete |
|
delete |
|
noexcept |
|
noexcept |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
noexcept |
Force flush the gRPC client.
|
noexcept |
Force flush the gRPC client.
|
static |
|
static |
|
noexcept |
|
noexcept |
|
static |
Create gRPC channel from the exporter options.
|
static |
Create gRPC channel from the exporter options.
|
static |
Create gRPC client context to call RPC.
|
static |
Create gRPC client context to call RPC.
| std::unique_ptr<proto::collector::logs::v1::LogsService::StubInterface> exporter::otlp::OtlpGrpcClient::MakeLogsServiceStub | ( | ) |
Create logs service stub to communicate with the OpenTelemetry Collector.
| std::unique_ptr<proto::collector::logs::v1::LogsService::StubInterface> exporter::otlp::OtlpGrpcClient::MakeLogsServiceStub | ( | ) |
Create logs service stub to communicate with the OpenTelemetry Collector.
| std::unique_ptr<proto::collector::metrics::v1::MetricsService::StubInterface> exporter::otlp::OtlpGrpcClient::MakeMetricsServiceStub | ( | ) |
Create metrics service stub to communicate with the OpenTelemetry Collector.
| std::unique_ptr<proto::collector::metrics::v1::MetricsService::StubInterface> exporter::otlp::OtlpGrpcClient::MakeMetricsServiceStub | ( | ) |
Create metrics service stub to communicate with the OpenTelemetry Collector.
| std::unique_ptr<proto::collector::trace::v1::TraceService::StubInterface> exporter::otlp::OtlpGrpcClient::MakeTraceServiceStub | ( | ) |
Create trace service stub to communicate with the OpenTelemetry Collector.
| std::unique_ptr<proto::collector::trace::v1::TraceService::StubInterface> exporter::otlp::OtlpGrpcClient::MakeTraceServiceStub | ( | ) |
Create trace service stub to communicate with the OpenTelemetry Collector.
| std::shared_ptr<OtlpGrpcClientAsyncData> exporter::otlp::OtlpGrpcClient::MutableAsyncData | ( | const OtlpGrpcClientOptions & | options | ) |
| std::shared_ptr<OtlpGrpcClientAsyncData> exporter::otlp::OtlpGrpcClient::MutableAsyncData | ( | const OtlpGrpcClientOptions & | options | ) |
|
delete |
|
delete |
|
delete |
|
delete |
|
noexcept |
Reomve reference fro a guard object.
| guard | guard object to remove reference from |
|
noexcept |
Reomve reference fro a guard object.
| guard | guard object to remove reference from |
|
noexcept |
Shut down the gRPC client.
| timeout | an optional timeout, the default timeout of 0 means that no timeout is applied. |
|
noexcept |
Shut down the gRPC client.
| timeout | an optional timeout, the default timeout of 0 means that no timeout is applied. |