3 #include "THttpTransport.h"
6 #include <thrift/protocol/TProtocol.h>
7 #include <thrift/transport/TTransport.h>
11 OPENTELEMETRY_BEGIN_NAMESPACE
17 using TProtocol
= apache::thrift::protocol::TProtocol
;
19 class HttpTransport
: public Transport
22 HttpTransport(std::string endpoint
, ext::http::client::Headers headers
);
24 int EmitBatch(const thrift::Batch
&batch
) override
;
26 uint32_t MaxPacketSize() const override
28 // Default to 4 MiB POST body size.
33 std::shared_ptr
<THttpTransport
> endpoint_transport_
;
34 std::shared_ptr
<TProtocol
> protocol_
;
38 } // namespace exporter
39 OPENTELEMETRY_END_NAMESPACE