Skip to content

Commit ad01127

Browse files
committed
fix(service): fix notImplemented errors
1 parent f2e7eec commit ad01127

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/app-insight.service.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,58 +34,58 @@ export class AppInsightsService {
3434
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#trackpageview
3535
// trackPageView(name?: string, url?: string, properties?:{[string]:string}, measurements?: {[string]:number}, duration?: number)
3636
// Logs that a page or similar container was displayed to the user.
37-
trackPageView() { return notImplemented('trackPageView'); }
37+
trackPageView() { return this.notImplemented('trackPageView'); }
3838

3939
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#starttrackpage
4040
// startTrackPage(name?: string)
4141
// Starts the timer for tracking a page view. Use this instead of trackPageView if you want to control when the
4242
// page view timer starts and stops, but don't want to calculate the duration yourself. This method doesn't send any
4343
// telemetry. Call stopTrackPage to log the end of the page view and send the event.
44-
startTrackPage(name?: string) { return notImplemented('startTrackPage'); }
44+
startTrackPage(name?: string) { return this.notImplemented('startTrackPage'); }
4545

4646
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#stoptrackpage
4747
// stopTrackPage(name?: string, url?: string, properties?: Object, measurements?: Object)
4848
// Stops the timer that was started by calling startTrackPage and sends the page view telemetry with the
4949
// specified properties and measurements. The duration of the page view will be the time between calling startTrackPage and stopTrackPage.
50-
stopTrackPage() { return notImplemented('stopTrackPage'); }
50+
stopTrackPage() { return this.notImplemented('stopTrackPage'); }
5151

5252
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#trackmetric
5353
// trackMetric(name: string, average: number, sampleCount?: number, min?: number, max?: number, properties?: {[string]:string})
5454
// Log a positive numeric value that is not associated with a specific event.
5555
// Typically used to send regular reports of performance indicators.
56-
trackMetric() { return notImplemented('trackMetric'); }
56+
trackMetric() { return this.notImplemented('trackMetric'); }
5757

5858
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#trackexception
5959
// trackException(exception: Error, handledAt?: string, properties?: {[string]:string}, measurements?: {[string]:number}, severityLevel?: AI.SeverityLevel)
6060
// Log an exception you have caught. (Exceptions caught by the browser are also logged.)
61-
trackException() { return notImplemented('trackException'); }
61+
trackException() { return this.notImplemented('trackException'); }
6262

6363
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#tracktrace
6464
// trackTrace(message: string, properties?: {[string]:string}, measurements?: {[string]:number})
6565
// Log a diagnostic event such as entering or leaving a method.
66-
trackTrace() { return notImplemented('trackTrace'); }
66+
trackTrace() { return this.notImplemented('trackTrace'); }
6767

6868
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#trackdependency
6969
// trackDependency(id: string, method: string, absoluteUrl: string, pathName: string, totalTime: number, success: boolean, resultCode: number)
7070
// Log a dependency call (for instance: ajax)
71-
trackDependency() { return notImplemented('trackDependency'); }
71+
trackDependency() { return this.notImplemented('trackDependency'); }
7272

7373
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#flush
7474
// flush()
7575
// Immediately send all queued telemetry. Synchronous.
7676
// * You don't usually have to use this, as it happens automatically on window closing.
77-
flush() { return notImplemented('flush'); }
77+
flush() { return this.notImplemented('flush'); }
7878

7979
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#setauthenticatedusercontext
8080
// setAuthenticatedUserContext(authenticatedUserId: string, accountId?: string)
8181
// Set the authenticated user id and the account id in this session. Use this when you have identified a specific
8282
// signed-in user. Parameters must not contain spaces or ,;=|
83-
setAuthenticatedUserContext() { return notImplemented('setAuthenticatedUserContext'); }
83+
setAuthenticatedUserContext() { return this.notImplemented('setAuthenticatedUserContext'); }
8484

8585
// https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#clearauthenticatedusercontext
8686
// clearAuthenticatedUserContext ()
8787
// Clears the authenticated user id and the account id from the user context, and clears the associated cookie.
88-
clearAuthenticatedUserContext() { return notImplemented('clearAuthenticatedUserContext'); }
88+
clearAuthenticatedUserContext() { return this.notImplemented('clearAuthenticatedUserContext'); }
8989

9090

9191
/*

0 commit comments

Comments
 (0)