Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Add two telemetry metrics to AIShell to get an idea of the usage#416

Merged
daxian-dbw merged 4 commits into
PowerShell:mainPowerShell/AIShell:mainfrom
daxian-dbw:telemetrydaxian-dbw/AIShell:telemetryCopy head branch name to clipboard
Oct 7, 2025
Merged

Add two telemetry metrics to AIShell to get an idea of the usage#416
daxian-dbw merged 4 commits into
PowerShell:mainPowerShell/AIShell:mainfrom
daxian-dbw:telemetrydaxian-dbw/AIShell:telemetryCopy head branch name to clipboard

Conversation

@daxian-dbw

@daxian-dbw daxian-dbw commented Oct 6, 2025

Copy link
Copy Markdown
Member

PR Summary

Add 2 telemetry metrics to AIShell:

  1. SessionCount: tracking the number of sessions get started. It sends custom dimensions uuid, os, and standalone, so we will know the unique users, the platforms, and whether a session is standalone.
  2. QueryCount: tracking the number of queries get asked. It sends custom dimensions uuid, agent-name, and remote, so we will now the distribution of the queries based on unique users, agents, and whether it's a remote query.

The telemetry can be opted out by setting the environment var AISHELL_TELEMETRY_OPTOUT to 1 or true.


If we ever need to disable or reject telemetry ingestion from the AppInsights service side, we do one of the followings:

  1. Set a daily limit on data ingestion with Daily cap
    • "Configure" -> "Usage and estimated cost" -> "Daily cap"
  2. Reduce the percentage of telemetry ingested with Data sampling
    • "Configure" -> "Usage and estimated cost" -> "Data sampling"
  3. Connection string rotation

None of them will cause issues on the client side.

@daxian-dbw daxian-dbw changed the title Telemetry Add two telemetry metrics to AIShell to get an idea of the usage Oct 6, 2025
@daxian-dbw daxian-dbw merged commit f97c7a9 into PowerShell:main Oct 7, 2025
4 checks passed
@daxian-dbw daxian-dbw deleted the telemetry branch October 7, 2025 21:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.