Skip to content

Commit

Permalink
resolving comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ndangudubiyyam committed Dec 15, 2024
1 parent 03cd709 commit 89b98e5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/teams-js/src/private/copilot/customTelemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const copilotLogger = getLogger('copilot');
*
* @param { UUID } stageNameIdentifier - The stageName UUID identifier for the telemetry data.
* @param { number } [timestamp=getCurrentTimestamp() ?? Date.now()] - The timestamp of the telemetry data. Defaults to the current timestamp.
* @returns { Promise<void> } - A promise that resolves when the telemetry data has been sent.
* @throws { Error } - Throws an error if the app has not been successfully initialized.
* @returns { Promise<void> } - promise resolves when the hubsdk acknowledges that it has received the message.
* @throws { Error } - Throws an error if the app has not been successfully initialized or the host-sdk returns an error as a response to this call
*
* @hidden
* @internal
Expand All @@ -35,7 +35,11 @@ export async function sendCustomTelemetryData(
timestamp: number = getCurrentTimestamp() ?? Date.now(),
): Promise<void> {
ensureInitialized(runtime);
copilotLogger('Sending custom telemetry data to host. to record timestamp: %s', timestamp);
copilotLogger(
'Sending custom telemetry data to host for stage: %s to record timestamp: %s',
stageNameIdentifier,
timestamp,
);
return callFunctionInHost(
ApiName.Copilot_CustomTelemetry_SendCustomTelemetryData,
[stageNameIdentifier.toString(), timestamp],
Expand Down

0 comments on commit 89b98e5

Please sign in to comment.