Skip to content

Add telemetry for bestpractices command parameters#375

Merged
fanyang-mono merged 4 commits intomicrosoft:mainfrom
fanyang-mono:add_parameter_telemetry
Sep 9, 2025
Merged

Add telemetry for bestpractices command parameters#375
fanyang-mono merged 4 commits intomicrosoft:mainfrom
fanyang-mono:add_parameter_telemetry

Conversation

@fanyang-mono
Copy link
Copy Markdown
Contributor

@fanyang-mono fanyang-mono commented Sep 9, 2025

What does this PR do?

Add telemetry to log parameter values for bestpractices tool. Note that only valid values will be logged.

GitHub issue number?

N/A

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Updated servers/Azure.Mcp.Server/CHANGELOG.md and/or servers/Fabric.Mcp.Server/CHANGELOG.md for product changes (features, bug fixes, UI/UX, updated dependencies)
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Updated command list in /docs/azmcp-commands.md and/or /docs/fabric-commands.md
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
  • Extra steps for Azure MCP Server tool changes:
    • Updated test prompts in /docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

Copilot AI review requested due to automatic review settings September 9, 2025 14:57
@fanyang-mono fanyang-mono requested review from a team, conniey and g2vinay as code owners September 9, 2025 14:57
@github-project-automation github-project-automation Bot moved this to Untriaged in Azure MCP Server Sep 9, 2025
Copy link
Copy Markdown
Contributor

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 adds telemetry support to the BestPracticesCommand by logging the resource and action parameter values when the command executes successfully. The change adds activity tags to track usage patterns of the best practices tool.

  • Adds telemetry tracking for resource and action parameters
  • Includes new import for telemetry services
  • Tags are only added on successful execution after validation

Comment thread tools/Azure.Mcp.Tools.AzureBestPractices/src/Commands/BestPracticesCommand.cs Outdated
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server Sep 9, 2025
@fanyang-mono fanyang-mono enabled auto-merge (squash) September 9, 2025 21:47
@fanyang-mono fanyang-mono merged commit db642cd into microsoft:main Sep 9, 2025
23 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Sep 9, 2025
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Sep 27, 2025
* Add telemetry for bestpractices command parameters

* Update CHANGELOG

* Address review feedback

* Fix formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants