File tree Expand file tree Collapse file tree 3 files changed +173
-128
lines changed
include/opentelemetry/exporters/otlp Expand file tree Collapse file tree 3 files changed +173
-128
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,23 @@ class OPENTELEMETRY_EXPORT_TYPE OtlpGrpcForwardProxy
2222{
2323 struct Impl ;
2424 std::unique_ptr<Impl> impl;
25+ OtlpGrpcForwardProxy () = delete ;
2526public:
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 ();
You can’t perform that action at this time.
0 commit comments