feat(logging): Added Elastic APM RUM logging. (TV-316)
Squashed commit of the following: commit 3c4abbe69605caff2a39efafd90550d93e9e1447 Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Mon Oct 4 15:56:41 2021 +0200 Updated npm scripts and built/serve shell commit 00525a666fb6b3146ea5f85c7c3ad741378401de Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Mon Oct 4 13:59:12 2021 +0200 Updated nginx-conf commit a9945c14cc93eebf8812c075fe8ca67e39ab8ae8 Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Mon Oct 4 12:59:49 2021 +0200 Added elastics serverUrl to environment files and fixed nginx-conf commit 38872cea957ce54c5cb496890e4be88fb019be58 Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Mon Oct 4 12:49:41 2021 +0200 Added Elastic APM with error handling commit d3db5e8703e3b0a1d0d0b24230dc52a64bee252c Merge: a3bc70e9d139f750Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Mon Oct 4 12:22:16 2021 +0200 Merge branch 'develop' into feature/TV-316-RUM commit a3bc70e9420dc5d309325cfcf1221c6760d18c38 Merge: 3f98a66bc2a02dbaAuthor: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Mon Oct 4 09:07:11 2021 +0200 Merge branch 'develop' into feature/TV-316-RUM commit 3f98a66bfda3af315c5417e2d2902ab80877b98b Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Fri Oct 1 16:05:43 2021 +0200 Added @elastic/apm-rum-angular to log errors and api-requests
This commit is contained in:
@@ -20,4 +20,5 @@ export const ACTIVE_FEATURES_TEST: Feature[] = [
|
||||
Feature.ACCESSIBILITY_REPORT,
|
||||
Feature.REPORTING,
|
||||
Feature.SENSITIVE_INFORMATION,
|
||||
Feature.LOGGING,
|
||||
];
|
||||
|
||||
@@ -3,7 +3,6 @@ import { ACTIVE_FEATURES_PROD } from './active-features';
|
||||
import { CIAM_TEST } from './ciam';
|
||||
|
||||
export const environment: Environment = {
|
||||
environment: 'acc',
|
||||
version: 'acc',
|
||||
production: true,
|
||||
api: {
|
||||
@@ -12,5 +11,10 @@ export const environment: Environment = {
|
||||
skipHeadersOn: ['assets/'],
|
||||
},
|
||||
activeFeatures: [...ACTIVE_FEATURES_PROD],
|
||||
...CIAM_TEST,
|
||||
elastic: {
|
||||
serverUrl: '/logging',
|
||||
serviceName: 'mina-sidor-fa',
|
||||
environment: 'ACC',
|
||||
},
|
||||
ciam: CIAM_TEST,
|
||||
};
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import { Feature } from '@msfa-enums/feature.enum';
|
||||
import { Environment } from '@msfa-models/environment.model';
|
||||
import { ACTIVE_FEATURES_TEST } from './active-features';
|
||||
import { CIAM_TEST } from './ciam';
|
||||
import { CIAM_MOCK } from './ciam';
|
||||
|
||||
export const environment: Environment = {
|
||||
environment: 'api',
|
||||
version: 'api',
|
||||
version: 'mock',
|
||||
production: false,
|
||||
api: {
|
||||
url: '/api',
|
||||
headers: {},
|
||||
skipHeadersOn: ['assets/'],
|
||||
skipHeadersOn: [],
|
||||
},
|
||||
activeFeatures: [...ACTIVE_FEATURES_TEST],
|
||||
...CIAM_TEST,
|
||||
activeFeatures: [...ACTIVE_FEATURES_TEST, Feature.MOCK_LOGIN],
|
||||
ciam: CIAM_MOCK,
|
||||
};
|
||||
@@ -3,7 +3,6 @@ import { ACTIVE_FEATURES_PROD } from './active-features';
|
||||
import { CIAM_PROD } from './ciam';
|
||||
|
||||
export const environment: Environment = {
|
||||
environment: 'prod',
|
||||
version: 'prod',
|
||||
production: true,
|
||||
api: {
|
||||
@@ -12,5 +11,10 @@ export const environment: Environment = {
|
||||
skipHeadersOn: ['assets/'],
|
||||
},
|
||||
activeFeatures: [...ACTIVE_FEATURES_PROD],
|
||||
...CIAM_PROD,
|
||||
elastic: {
|
||||
serverUrl: '/logging',
|
||||
serviceName: 'mina-sidor-fa',
|
||||
environment: 'PROD',
|
||||
},
|
||||
ciam: CIAM_PROD,
|
||||
};
|
||||
|
||||
@@ -1,17 +1,20 @@
|
||||
import { Feature } from '@msfa-enums/feature.enum';
|
||||
import { Environment } from '@msfa-models/environment.model';
|
||||
import { ACTIVE_FEATURES_TEST } from './active-features';
|
||||
import { CIAM_MOCK } from './ciam';
|
||||
import { CIAM_TEST } from './ciam';
|
||||
|
||||
export const environment: Environment = {
|
||||
environment: 'local',
|
||||
version: 'local',
|
||||
version: 'api',
|
||||
production: false,
|
||||
api: {
|
||||
url: '/api',
|
||||
headers: {},
|
||||
skipHeadersOn: [],
|
||||
skipHeadersOn: ['assets/'],
|
||||
},
|
||||
activeFeatures: [...ACTIVE_FEATURES_TEST, Feature.MOCK_LOGIN],
|
||||
...CIAM_MOCK,
|
||||
activeFeatures: [...ACTIVE_FEATURES_TEST],
|
||||
elastic: {
|
||||
serverUrl: '/logging',
|
||||
serviceName: 'mina-sidor-fa',
|
||||
environment: 'DEV',
|
||||
},
|
||||
ciam: CIAM_TEST,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user