The OTLP HTTP client exports span data in OpenTelemetry Protocol (OTLP) format.
Definition at line 153 of file includes/opentelemetry/exporters/otlp/otlp_http_client.h.
Public Member Functions | |
| OtlpHttpClient (OtlpHttpClientOptions &&options) | |
| Create an OtlpHttpClient using the given options. More... | |
| ~OtlpHttpClient () | |
| OtlpHttpClient (const OtlpHttpClient &)=delete | |
| OtlpHttpClient & | operator= (const OtlpHttpClient &)=delete |
| OtlpHttpClient (OtlpHttpClient &&)=delete | |
| OtlpHttpClient & | operator= (OtlpHttpClient &&)=delete |
| sdk::common::ExportResult | Export (const google::protobuf::Message &message) noexcept |
| Sync export. More... | |
| sdk::common::ExportResult | Export (const google::protobuf::Message &message, std::function< bool(opentelemetry::sdk::common::ExportResult)> &&result_callback) noexcept |
| Async export. More... | |
| sdk::common::ExportResult | Export (const google::protobuf::Message &message, std::function< bool(opentelemetry::sdk::common::ExportResult)> &&result_callback, std::size_t max_running_requests) noexcept |
| Async export. More... | |
| bool | ForceFlush (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept |
| Force flush the HTTP client. More... | |
| bool | Shutdown (std::chrono::microseconds timeout=std::chrono::microseconds(0)) noexcept |
| Shut down the HTTP client. More... | |
| void | ReleaseSession (const opentelemetry::ext::http::client::Session &session) noexcept |
| Release the lifetime of specify session. More... | |
| const OtlpHttpClientOptions & | GetOptions () const noexcept |
| Get options of current OTLP http client. More... | |
| bool | IsShutdown () const noexcept |
| Get if this OTLP http client is shutdown. More... | |
| OtlpHttpClient (OtlpHttpClientOptions &&options) | |
| Create an OtlpHttpClient using the given options. More... | |
| ~OtlpHttpClient () | |
| OtlpHttpClient (const OtlpHttpClient &)=delete | |
| OtlpHttpClient & | operator= (const OtlpHttpClient &)=delete |
| OtlpHttpClient (OtlpHttpClient &&)=delete | |
| OtlpHttpClient & | operator= (OtlpHttpClient &&)=delete |
| sdk::common::ExportResult | Export (const google::protobuf::Message &message) noexcept |
| Sync export. More... | |
| sdk::common::ExportResult | Export (const google::protobuf::Message &message, std::function< bool(opentelemetry::sdk::common::ExportResult)> &&result_callback) noexcept |
| Async export. More... | |
| sdk::common::ExportResult | Export (const google::protobuf::Message &message, std::function< bool(opentelemetry::sdk::common::ExportResult)> &&result_callback, std::size_t max_running_requests) noexcept |
| Async export. More... | |
| bool | ForceFlush (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept |
| Force flush the HTTP client. More... | |
| bool | Shutdown (std::chrono::microseconds timeout=std::chrono::microseconds(0)) noexcept |
| Shut down the HTTP client. More... | |
| void | ReleaseSession (const opentelemetry::ext::http::client::Session &session) noexcept |
| Release the lifetime of specify session. More... | |
| const OtlpHttpClientOptions & | GetOptions () const noexcept |
| Get options of current OTLP http client. More... | |
| bool | IsShutdown () const noexcept |
| Get if this OTLP http client is shutdown. More... | |
Friends | |
| class | OtlpHttpExporterTestPeer |
| class | OtlpHttpLogRecordExporterTestPeer |
| class | OtlpHttpMetricExporterTestPeer |
|
explicit |
Create an OtlpHttpClient using the given options.
| exporter::otlp::OtlpHttpClient::~OtlpHttpClient | ( | ) |
|
delete |
|
delete |
|
explicit |
Create an OtlpHttpClient using the given options.
| exporter::otlp::OtlpHttpClient::~OtlpHttpClient | ( | ) |
|
delete |
|
delete |
|
noexcept |
Sync export.
| message | message to export, it should be ExportTraceServiceRequest, ExportMetricsServiceRequest or ExportLogsServiceRequest |
|
noexcept |
Sync export.
| message | message to export, it should be ExportTraceServiceRequest, ExportMetricsServiceRequest or ExportLogsServiceRequest |
|
noexcept |
Async export.
| message | message to export, it should be ExportTraceServiceRequest, ExportMetricsServiceRequest or ExportLogsServiceRequest |
| result_callback | callback to call when the exporting is done |
|
noexcept |
Async export.
| message | message to export, it should be ExportTraceServiceRequest, ExportMetricsServiceRequest or ExportLogsServiceRequest |
| result_callback | callback to call when the exporting is done |
|
noexcept |
Async export.
| message | message to export, it should be ExportTraceServiceRequest, ExportMetricsServiceRequest or ExportLogsServiceRequest |
| result_callback | callback to call when the exporting is done |
| max_running_requests | wait for at most max_running_requests running requests |
|
noexcept |
Async export.
| message | message to export, it should be ExportTraceServiceRequest, ExportMetricsServiceRequest or ExportLogsServiceRequest |
| result_callback | callback to call when the exporting is done |
| max_running_requests | wait for at most max_running_requests running requests |
|
noexcept |
Force flush the HTTP client.
|
noexcept |
Force flush the HTTP client.
|
inlinenoexcept |
Get options of current OTLP http client.
Definition at line 223 of file includes/opentelemetry/exporters/otlp/otlp_http_client.h.
|
inlinenoexcept |
Get options of current OTLP http client.
Definition at line 223 of file 9.2/includes/opentelemetry/exporters/otlp/otlp_http_client.h.
|
noexcept |
Get if this OTLP http client is shutdown.
|
noexcept |
Get if this OTLP http client is shutdown.
|
delete |
|
delete |
|
delete |
|
delete |
|
noexcept |
Release the lifetime of specify session.
| session | the session to release |
|
noexcept |
Release the lifetime of specify session.
| session | the session to release |
|
noexcept |
Shut down the HTTP client.
| timeout | an optional timeout, the default timeout of 0 means that no timeout is applied. |
|
noexcept |
Shut down the HTTP client.
| timeout | an optional timeout, the default timeout of 0 means that no timeout is applied. |
|
friend |
Definition at line 270 of file includes/opentelemetry/exporters/otlp/otlp_http_client.h.
|
friend |
Definition at line 271 of file includes/opentelemetry/exporters/otlp/otlp_http_client.h.
|
friend |
Definition at line 272 of file includes/opentelemetry/exporters/otlp/otlp_http_client.h.