1
1
import { ScenarioService } from './../shared/services/scenario/scenario.service' ;
2
- import { ScenarioIds , Constants } from './../shared/models/constants' ;
2
+ import { ScenarioIds , Constants , LogCategories } from './../shared/models/constants' ;
3
3
import { ComponentNames } from 'app/shared/models/constants' ;
4
4
import { Component , Injector } from '@angular/core' ;
5
5
import { Observable } from 'rxjs/Observable' ;
@@ -15,6 +15,7 @@ import { PortalResources } from '../shared/models/portal-resources';
15
15
import { TranslateService } from '@ngx-translate/core' ;
16
16
import { ApplicationInsightsService } from '../shared/services/application-insights.service' ;
17
17
import { SiteService } from '../shared/services/site.service' ;
18
+ import { LogService } from '../shared/services/log.service' ;
18
19
19
20
@Component ( {
20
21
selector : ComponentNames . functionMonitor ,
@@ -34,6 +35,7 @@ export class FunctionMonitorComponent extends NavigableComponent {
34
35
private _scenarioService : ScenarioService ,
35
36
private _translateService : TranslateService ,
36
37
private _applicationInsightsService : ApplicationInsightsService ,
38
+ private _logService : LogService ,
37
39
public globalStateService : GlobalStateService ,
38
40
injector : Injector
39
41
) {
@@ -129,6 +131,11 @@ export class FunctionMonitorComponent extends NavigableComponent {
129
131
message : this . _translateService . instant ( PortalResources . monitoring_appInsightsIsNotFound ) ,
130
132
resourceId : this . functionMonitorInfo . functionAppContext . site . id
131
133
} ;
134
+
135
+ this . _logService . error (
136
+ LogCategories . applicationInsightsKeyNotFound ,
137
+ errorIds . applicationInsightsInstrumentationKeyMismatch ,
138
+ 'Application Insights Instrumentation Key not found' ) ;
132
139
}
133
140
134
141
this . monitorConfigureInfo = {
0 commit comments