-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove(core): remove easy telemetry #4486
base: master
Are you sure you want to change the base?
Conversation
* remove telemetry endpoint property
* remove database property * remove database lock * remove `connect` dependency * remove unused logging * empty out commands: `IsTelemetryEnabledCmd` * remove related command checks * `IsTelemetryEnabledCmd` returns always `false`, add javadoc
EjbPlatformXmlStartProcessEnginesStep
remove TelemetryUtil#toggleLocalTelemetry
*remove timer & cleanup #updateAndSendData * rename to DiagnosticsCollector
4caa038
to
3b84136
Compare
TelemetryRegistry -> DiagnosticsRegistry PlatformTelemetryRegistry -> PlatformDiagnosticsRegistry CommandChecker.checkReadDiagnosticsData -> CommandChecker.checkReadTelemetryData DeleteLicenseKeyCmd.updateTelemetry -> DeleteLicenseKeyCmd.updateDiagnostics ManagementServiceImpl.getLicenseKeyFromTelemetry() -> ManagementServiceImpl.getLicenseKeyFromDiagnostics() remove * Telemetry logger * ManagementServiceImpl.clearTelemetryData()
1328ab4
to
2bbe663
Compare
e1d23bb
to
85aba6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Added a few comments.
/** default: once every 24 hours */ | ||
protected long telemetryReportingPeriod = 24 * 60 * 60; | ||
// diagnostics /////////////////////////////////////////////////////// | ||
protected DiagnosticsCollector diagnosticsCollector; | ||
protected TelemetryDataImpl telemetryData; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Only reason we don't modify the name of this class to something related to diagnostics
is because the interface is part of the public API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I left the interface part of the public API and the implementation there untouched.
@@ -362,4 +362,9 @@ public ProcessEngineException exceptionJobRetriesMustNotBeNegative(Integer retri | |||
"The number of job retries must be a non-negative Integer, but '{}' has been provided.", retries)); | |||
} | |||
|
|||
public ProcessEngineException exceptionWhileRetrievingDiagnosticsDataRegistryNull() { | |||
return new ProcessEngineException( | |||
exceptionMessage("019", "Error while retrieving diagnostics data. Diagnostics registry was not initialized.")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Looks like id "019"
is already taken above?
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); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙃 We can also use Set.of()
to avoid the static block.
@@ -18,7 +18,7 @@ | |||
|
|||
/** | |||
* Holds process engine version and edition (enterprise or community) | |||
* Used in retrieving the process engine details when sending telemetry data | |||
* Used in retrieving the process engine details for diagnostic data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Used in retrieving the process engine details for diagnostic data | |
* Used in retrieving the process engine details for diagnostics data |
#4483