Skip to content

Commit

Permalink
implement review hints
Browse files Browse the repository at this point in the history
  • Loading branch information
yanavasileva committed Aug 14, 2024
1 parent 034da74 commit fbceb35
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public ProcessEngineException exceptionJobRetriesMustNotBeNegative(Integer retri

public ProcessEngineException exceptionWhileRetrievingDiagnosticsDataRegistryNull() {
return new ProcessEngineException(
exceptionMessage("019", "Error while retrieving diagnostics data. Diagnostics registry was not initialized."));
exceptionMessage("055", "Error while retrieving diagnostics data. Diagnostics registry was not initialized."));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import static org.camunda.bpm.engine.management.Metrics.ROOT_PROCESS_INSTANCE_START;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.camunda.bpm.engine.impl.metrics.Meter;
Expand All @@ -38,14 +37,10 @@

public class DiagnosticsCollector {

protected static final Set<String> METRICS_TO_REPORT = new HashSet<>();

static {
METRICS_TO_REPORT.add(ROOT_PROCESS_INSTANCE_START);
METRICS_TO_REPORT.add(EXECUTED_DECISION_INSTANCES);
METRICS_TO_REPORT.add(EXECUTED_DECISION_ELEMENTS);
METRICS_TO_REPORT.add(ACTIVTY_INSTANCE_START);
}
protected static final Set<String> METRICS_TO_REPORT = Set.of(ROOT_PROCESS_INSTANCE_START,
EXECUTED_DECISION_INSTANCES,
EXECUTED_DECISION_ELEMENTS,
ACTIVTY_INSTANCE_START);

protected TelemetryDataImpl staticData;
protected DiagnosticsRegistry diagnosticsRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* Holds process engine version and edition (enterprise or community)
* Used in retrieving the process engine details for diagnostic data
* Used in retrieving the process engine details for diagnostics data
*/
public class ProcessEngineDetails {

Expand Down

0 comments on commit fbceb35

Please sign in to comment.