Support export via TLS (fix #12).

This commit is contained in:
Nikita Vakula 2024-11-15 11:39:30 +01:00 committed by p-pautov
parent da2e4eb11b
commit 6c1659a20b
3 changed files with 55 additions and 8 deletions

View file

@ -111,10 +111,10 @@ public:
int attrSize{0};
};
BatchExporter(StrView target,
BatchExporter(StrView target, bool ssl, const std::string& trustedCert,
size_t batchSize, size_t batchCount,
const std::map<StrView, StrView>& resourceAttrs) :
batchSize(batchSize), client(std::string(target))
batchSize(batchSize), client(std::string(target), ssl, trustedCert)
{
free.reserve(batchCount);
while (batchCount-- > 0) {