File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
custom/src/main/java/co/elastic/otel/dynamicconfig Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,30 @@ private void initSendingStates() {
8484 }
8585 }
8686
87+ /** Can be executed repeatedly regardless of the current state */
88+ public void setSendingSpans (boolean send ) {
89+ initSendingStates ();
90+ if (recoverySendSpansState != null ) {
91+ BlockableSpanExporter .getInstance ().setSendingSpans (send );
92+ }
93+ }
94+
95+ /** Can be executed repeatedly regardless of the current state */
96+ public void setSendingMetrics (boolean send ) {
97+ initSendingStates ();
98+ if (recoverySendMetricsState != null ) {
99+ BlockableMetricExporter .getInstance ().setSendingMetrics (send );
100+ }
101+ }
102+
103+ /** Can be executed repeatedly regardless of the current state */
104+ public void setSendingLogs (boolean send ) {
105+ initSendingStates ();
106+ if (recoverySendLogsState != null ) {
107+ BlockableLogRecordExporter .getInstance ().setSendingLogs (send );
108+ }
109+ }
110+
87111 /** Can be executed repeatedly even if sending is currently stopped */
88112 public void stopAllSending () {
89113 initSendingStates ();
You can’t perform that action at this time.
0 commit comments