Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Composer/packages/server/src/controllers/publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,20 @@ export const PublishController = {
msAppId: configuration.settings?.MicrosoftAppId,
subscriptionId: configuration.subscriptionId,
});

TelemetryService.startEvent('PublishingProfileCompleted', `${target}${projectId}`, {
target,
projectId,
msAppId: configuration.settings?.MicrosoftAppId,
subscriptionId: configuration.subscriptionId,
});
} catch (error) {
TelemetryService.trackEvent('PublishingProfileStarted', {
target,
projectId,
});
}

TelemetryService.startEvent('PublishingProfileCompleted', `${target}${projectId}`, { target, projectId });

log('access token retrieved from body: %s', accessToken || 'no token provided');
if (profile && extensionImplementsMethod(extensionName, 'publish')) {
// append config from client(like sensitive settings)
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/types/src/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type PublishingEvents = {
NewPublishingProfileStarted: undefined;
NewPublishingProfileSaved: { type: string; msAppId?: string; subscriptionId?: string };
PublishingProfileStarted: { target: string; projectId: string; msAppId?: string; subscriptionId?: string };
PublishingProfileCompleted: { target: string; projectId: string };
PublishingProfileCompleted: { target: string; projectId: string; msAppId?: string; subscriptionId?: string };
};

type AppSettingsEvents = {
Expand Down