Skip to content

Fix typo in telemetry config#2640

Merged
blueww merged 1 commit intoAzure:mainfrom
pl4nty:patch-1
Apr 16, 2026
Merged

Fix typo in telemetry config#2640
blueww merged 1 commit intoAzure:mainfrom
pl4nty:patch-1

Conversation

@pl4nty
Copy link
Copy Markdown
Contributor

@pl4nty pl4nty commented Apr 8, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 8, 2026 10:25
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects a misspelling of “InstanceID” in Azurite’s telemetry initialization logging and in the persisted telemetry instance ID config format.

Changes:

  • Fixes InstaceIDInstanceID in telemetry startup log output.
  • Renames the persisted telemetry config JSON field from instaceID to instanceID in GetInstanceID().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/common/Telemetry.ts
Comment on lines 303 to 307
try{
let data = fs.readFileSync(configFilePath, 'utf8');
instaceID = JSON.parse(data.toString()).instaceID;
instanceID = JSON.parse(data.toString()).instanceID;
}
catch(e){
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetInstanceID now reads/writes the JSON key instanceID, but existing installs may already have a config file written with the legacy misspelled key instaceID. With the current change, those users will fail to read the persisted ID, generate a new UUID, and overwrite the file, effectively changing the stable instance identity. Consider reading both keys (prefer instanceID, fallback to instaceID) and migrating the file to the corrected key when the legacy key is present.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's already logic to regenerate a missing instance ID, I figured that was sufficient

@blueww blueww merged commit b6298b2 into Azure:main Apr 16, 2026
38 of 39 checks passed
@pl4nty pl4nty deleted the patch-1 branch April 16, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants