Handle telemetry disabled (#9517)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
This commit is contained in:
parent
eed6ad9166
commit
cd624982b8
|
|
@ -36,6 +36,10 @@ public class SegmentConfig {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public Analytics analyticsRunner() {
|
public Analytics analyticsRunner() {
|
||||||
|
if (commonConfig.isTelemetryDisabled()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
final String analyticsWriteKey = commonConfig.isCloudHosting() ? writeKey : ceKey;
|
final String analyticsWriteKey = commonConfig.isCloudHosting() ? writeKey : ceKey;
|
||||||
if (StringUtils.isEmpty(analyticsWriteKey)) {
|
if (StringUtils.isEmpty(analyticsWriteKey)) {
|
||||||
// We don't have the Segment Key, returning `null` here will disable analytics calls from AnalyticsService.
|
// We don't have the Segment Key, returning `null` here will disable analytics calls from AnalyticsService.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user