Skip to content

Commit cae5e2f

Browse files
authored
Merge pull request #5531 from AzureAD/fix-typos-telemetry-dev
Fix typos in telemetry
2 parents 4ed1f69 + 80e3129 commit cae5e2f

11 files changed

+29
-15
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix typos #5531",
4+
"packageName": "@azure/msal-browser",
5+
"email": "bmahal@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix typos #5531",
4+
"packageName": "@azure/msal-common",
5+
"email": "bmahal@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

lib/msal-browser/src/app/PublicClientApplication.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class PublicClientApplication extends ClientApplication implements IPubli
177177
*/
178178
protected async acquireTokenSilentAsync(request: SilentRequest, account: AccountInfo): Promise<AuthenticationResult>{
179179
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);
180-
const astsAsyncMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenSilentAsync, request.correlationId);
180+
const atsAsyncMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenSilentAsync, request.correlationId);
181181

182182
let result: Promise<AuthenticationResult>;
183183
if (NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, request.authenticationScheme) && account.nativeAccountId) {
@@ -242,7 +242,7 @@ export class PublicClientApplication extends ClientApplication implements IPubli
242242

243243
return result.then((response) => {
244244
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, response);
245-
astsAsyncMeasurement.endMeasurement({
245+
atsAsyncMeasurement.endMeasurement({
246246
success: true,
247247
fromCache: response.fromCache,
248248
isNativeBroker: response.fromNativeBroker,
@@ -251,7 +251,7 @@ export class PublicClientApplication extends ClientApplication implements IPubli
251251
return response;
252252
}).catch((tokenRenewalError: AuthError) => {
253253
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, tokenRenewalError);
254-
astsAsyncMeasurement.endMeasurement({
254+
atsAsyncMeasurement.endMeasurement({
255255
errorCode: tokenRenewalError.errorCode,
256256
subErrorCode: tokenRenewalError.subError,
257257
success: false

lib/msal-browser/src/telemetry/BrowserPerformanceClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class BrowserPerformanceClient extends PerformanceClient implements IPerf
1919
this.guidGenerator = new GuidGenerator(this.browserCrypto);
2020
}
2121

22-
startPerformanceMeasuremeant(measureName: string, correlationId: string): IPerformanceMeasurement {
22+
startPerformanceMeasurement(measureName: string, correlationId: string): IPerformanceMeasurement {
2323
return new BrowserPerformanceMeasurement(measureName, correlationId);
2424
}
2525

lib/msal-browser/test/telemetry/BrowserPerformanceClient.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe("BrowserPerformanceClient.ts", () => {
4040
expect(typeof browserPerfClient.generateId()).toBe("string");
4141
});
4242
});
43-
describe("startPerformanceMeasuremeant", () => {
43+
describe("startPerformanceMeasurement", () => {
4444
it("calculate performance duration", () => {
4545
const browserPerfClient = new BrowserPerformanceClient(clientId, authority, logger, name, version, applicationTelemetry, cryptoOptions);
4646

lib/msal-common/src/telemetry/performance/IPerformanceClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ export interface IPerformanceClient {
2626
removePerformanceCallback(callbackId: string): boolean;
2727
addPerformanceCallback(callback: PerformanceCallbackFunction): string;
2828
emitEvents(events: PerformanceEvent[], correlationId: string): void;
29-
startPerformanceMeasuremeant(measureName: string, correlationId: string): IPerformanceMeasurement;
29+
startPerformanceMeasurement(measureName: string, correlationId: string): IPerformanceMeasurement;
3030
generateId(): string;
3131
}

lib/msal-common/src/telemetry/performance/PerformanceClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export abstract class PerformanceClient implements IPerformanceClient {
7272
* @param {string} correlationId
7373
* @returns {IPerformanceMeasurement}
7474
*/
75-
abstract startPerformanceMeasuremeant(measureName: string, correlationId: string): IPerformanceMeasurement;
75+
abstract startPerformanceMeasurement(measureName: string, correlationId: string): IPerformanceMeasurement;
7676

7777
/**
7878
* Generates and returns a unique id, typically a guid.
@@ -97,7 +97,7 @@ export abstract class PerformanceClient implements IPerformanceClient {
9797
}
9898

9999
this.logger.trace(`PerformanceClient: Performance measurement started for ${measureName}`, eventCorrelationId);
100-
const performanceMeasurement = this.startPerformanceMeasuremeant(measureName, eventCorrelationId);
100+
const performanceMeasurement = this.startPerformanceMeasurement(measureName, eventCorrelationId);
101101
performanceMeasurement.startMeasurement();
102102

103103
const inProgressEvent: PerformanceEvent = {

lib/msal-common/src/telemetry/performance/StubPerformanceClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class StubPerformanceClient extends PerformanceClient implements IPerform
2323
return "callback-id";
2424
}
2525

26-
startPerformanceMeasuremeant(): IPerformanceMeasurement {
26+
startPerformanceMeasurement(): IPerformanceMeasurement {
2727
return new StubPerformanceMeasurement();
2828
}
2929
}

lib/msal-common/test/client/AuthorizationCodeClient.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,7 @@ describe("AuthorizationCodeClient unit tests", () => {
20172017
removePerformanceCallback: jest.fn(),
20182018
addPerformanceCallback: jest.fn(),
20192019
emitEvents: jest.fn(),
2020-
startPerformanceMeasuremeant: jest.fn(),
2020+
startPerformanceMeasurement: jest.fn(),
20212021
generateId: jest.fn()
20222022
}
20232023
performanceClient.startMeasurement.mockImplementation(() => {
@@ -2071,7 +2071,7 @@ describe("AuthorizationCodeClient unit tests", () => {
20712071
removePerformanceCallback: jest.fn(),
20722072
addPerformanceCallback: jest.fn(),
20732073
emitEvents: jest.fn(),
2074-
startPerformanceMeasuremeant: jest.fn(),
2074+
startPerformanceMeasurement: jest.fn(),
20752075
generateId: jest.fn()
20762076
}
20772077
performanceClient.startMeasurement.mockImplementation(() => {

lib/msal-common/test/client/RefreshTokenClient.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ describe("RefreshTokenClient unit tests", () => {
504504
removePerformanceCallback: jest.fn(),
505505
addPerformanceCallback: jest.fn(),
506506
emitEvents: jest.fn(),
507-
startPerformanceMeasuremeant: jest.fn(),
507+
startPerformanceMeasurement: jest.fn(),
508508
generateId: jest.fn()
509509
}
510510
performanceClient.startMeasurement.mockImplementation(() => {
@@ -536,7 +536,7 @@ describe("RefreshTokenClient unit tests", () => {
536536
removePerformanceCallback: jest.fn(),
537537
addPerformanceCallback: jest.fn(),
538538
emitEvents: jest.fn(),
539-
startPerformanceMeasuremeant: jest.fn(),
539+
startPerformanceMeasurement: jest.fn(),
540540
generateId: jest.fn()
541541
}
542542
performanceClient.startMeasurement.mockImplementation(() => {

0 commit comments

Comments
 (0)