Skip to content

Commit

Permalink
Feedback change to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 committed Aug 27, 2024
1 parent f14656b commit 1c41dde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions azure/src/wizard/VerifyProvidersStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export class VerifyProvidersStep<T extends ISubscriptionActionContext> extends A
* @deprecated
* Continue to emit telemetry for clients who are still using this property. You should suppress this property if you need to migrate to the new replacement.
*
* @param providerError2
* @param providerErrorV2
* A duplicate replacement of the `providerError` telemetry property.
*/
context.telemetry.properties.providerError = perror.message;
context.telemetry.properties.providerError2 = perror.message;
context.telemetry.properties.providerErrorV2 = perror.message;
}
}));
}
Expand Down
4 changes: 2 additions & 2 deletions utils/src/callWithTelemetryAndErrorHandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ function handleError(context: types.IActionContext, callbackId: string, error: u
* @deprecated
* Continue to emit telemetry for clients who are still using this property. You should suppress this property if you need to migrate to the new replacement.
*
* @param errorMessage2
* @param errorMessageV2
* A duplicate replacement of the `errorMessage` telemetry property which should be used instead.
*/
context.telemetry.properties.errorMessage = errorData.message;
context.telemetry.properties.errorMessage2 = errorData.message;
context.telemetry.properties.errorMessageV2 = errorData.message;

context.telemetry.properties.stack = errorData.stack ? limitLines(errorData.stack, maxStackLines) : undefined;
if (context.telemetry.suppressIfSuccessful || context.telemetry.suppressAll) {
Expand Down

0 comments on commit 1c41dde

Please sign in to comment.