7 #include "opentelemetry/exporters/otlp/protobuf_include_prefix.h"
10 #include "opentelemetry/proto/collector/logs/v1/logs_service.grpc.pb.h"
13 #include "opentelemetry/exporters/otlp/protobuf_include_suffix.h"
16 #include "opentelemetry/exporters/otlp/otlp_environment.h"
17 #include "opentelemetry/exporters/otlp/otlp_grpc_log_record_exporter_options.h"
18 #include "opentelemetry/nostd/shared_ptr.h"
19 #include "opentelemetry/sdk/logs/exporter.h"
29 class OtlpGrpcClientReferenceGuard;
51 const std::shared_ptr<OtlpGrpcClient> &client);
69 std::unique_ptr<opentelemetry::sdk::logs::Recordable>
MakeRecordable() noexcept
override;
77 const nostd::span<std::unique_ptr<opentelemetry::sdk::logs::Recordable>> &records) noexcept
100 const std::shared_ptr<OtlpGrpcClient> &
GetClient()
const noexcept;
106 std::shared_ptr<OtlpGrpcClient> client_;
107 std::shared_ptr<OtlpGrpcClientReferenceGuard> client_reference_guard_;
113 std::shared_ptr<proto::collector::logs::v1::LogsService::StubInterface> log_service_stub_;
121 std::unique_ptr<proto::collector::logs::v1::LogsService::StubInterface> stub);
130 std::unique_ptr<proto::collector::logs::v1::LogsService::StubInterface> stub,
131 const std::shared_ptr<OtlpGrpcClient> &client);
133 std::atomic<bool> is_shutdown_{
false};
134 bool isShutdown() const noexcept;