Skip to content

Commit 1db4e3e

Browse files
committed
fixes
1 parent 39aead6 commit 1db4e3e

File tree

3 files changed

+173
-128
lines changed

3 files changed

+173
-128
lines changed

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_forward_proxy.h

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,23 @@ class OPENTELEMETRY_EXPORT_TYPE OtlpGrpcForwardProxy
2222
{
2323
struct Impl;
2424
std::unique_ptr<Impl> impl;
25+
OtlpGrpcForwardProxy() = delete;
2526
public:
26-
explicit OtlpGrpcForwardProxy();
27+
enum class ExportMode {
28+
Unknown = -1,
29+
Sync = 0,
30+
// For async to work, options.max_concurrent_requests > 1.
31+
AsyncBlockOnFull = 1,
32+
AsyncDropOnFull = 2,
33+
};
34+
explicit OtlpGrpcForwardProxy(const OtlpGrpcClientOptions& options);
2735
~OtlpGrpcForwardProxy();
2836
void SetActive(bool active);
2937
bool IsActive() const;
30-
void SetAsync(bool async);
31-
bool IsAsync() const;
3238
void AddListenAddress(const std::string& listenAddress);
33-
void RegisterTraceExporter(const OtlpGrpcExporterOptions& options);
34-
void RegisterMetricExporter(const OtlpGrpcMetricExporterOptions& options);
35-
void RegisterLogRecordExporter(const OtlpGrpcLogRecordExporterOptions& options);
39+
void RegisterTraceExporter( ExportMode exportMode );
40+
void RegisterMetricExporter( ExportMode exportMode );
41+
void RegisterLogRecordExporter( ExportMode exportMode );
3642
void Start();
3743
void Wait();
3844
void Shutdown();

0 commit comments

Comments
 (0)