Skip to content
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

Disable telemetry in monitoring.service.ts #3240

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
'comma-style': 'error',
'computed-property-spacing': 'error',
'curly': ['error', 'all'],
'dot-notation': 'error',
'dot-notation': 'off',
'eol-last': 'error',
'eqeqeq': 'error',
'func-call-spacing': ['error', 'never'],
Expand Down
2 changes: 1 addition & 1 deletion charts/xui-webapp/values.preview.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ nodejs:
SERVICES_CASE_JUDICIAL_API: http://rd-judicial-api-aat.service.core-compute-aat.internal
SERVICES_LOCATION_REF_API_URL: http://rd-location-ref-api-aat.service.core-compute-aat.internal
FEATURE_ACCESS_MANAGEMENT_ENABLED: true
PREVIEW_DEPLOYMENT_ID: exui-preview-deployment-3230
PREVIEW_DEPLOYMENT_ID: exui-preview-deployment-3240
keyVaults:
rpx:
secrets:
Expand Down
9 changes: 7 additions & 2 deletions src/app/services/logger/monitoring.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,13 @@ export class MonitoringService implements IMonitoringService {
} else {
this.http.get('/api/monitoring-tools').subscribe((it) => {
this.config = {
// eslint-disable-next-line dot-notation
instrumentationKey: it['key']
// eslint-disable dot-notation
instrumentationKey: it['key'],
disableTelemetry: true,
disableExceptionTracking: true,
disableAjaxTracking: true,
disableDataLossAnalysis: true
// eslint-enable dot-notation
};
if (!this.areCookiesEnabled) {
this.config = {
Expand Down