Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,30 @@ private void initSendingStates() {
}
}

/** Can be executed repeatedly regardless of the current state */
public void setSendingSpans(boolean send) {
initSendingStates();
if (recoverySendSpansState != null) {
BlockableSpanExporter.getInstance().setSendingSpans(send);
}
}

/** Can be executed repeatedly regardless of the current state */
public void setSendingMetrics(boolean send) {
initSendingStates();
if (recoverySendMetricsState != null) {
BlockableMetricExporter.getInstance().setSendingMetrics(send);
}
}

/** Can be executed repeatedly regardless of the current state */
public void setSendingLogs(boolean send) {
initSendingStates();
if (recoverySendLogsState != null) {
BlockableLogRecordExporter.getInstance().setSendingLogs(send);
}
}

/** Can be executed repeatedly even if sending is currently stopped */
public void stopAllSending() {
initSendingStates();
Expand Down
Loading