Skip to content

fix: merging dev to main#600

Open
Priyanka-Microsoft wants to merge 40 commits intomainfrom
dev
Open

fix: merging dev to main#600
Priyanka-Microsoft wants to merge 40 commits intomainfrom
dev

Conversation

@Priyanka-Microsoft
Copy link
Copy Markdown
Contributor

Purpose

  • ...
    This pull request introduces significant improvements to the observability, reliability, and deployment automation of the chat API. The main focus is on adding detailed telemetry, logging, and error handling to both the synchronous and asynchronous chat endpoints, as well as introducing new GitHub Actions workflows for Azure deployment and template validation.

API Observability and Reliability Enhancements:

Chat API telemetry, logging, and error handling:

  • Added detailed telemetry events and structured logging throughout the /chat and /chatAsync endpoints in Chat.cs, including request tracking, validation, performance metrics, and error handling for timeouts and exceptions. This improves traceability and helps with monitoring and debugging in production. [1] [2] [3]
  • Introduced correlation IDs (request and session IDs) and activity tags for improved distributed tracing in logs and telemetry. [1] [2]
  • Enhanced error handling to specifically track and log validation failures, timeouts, argument errors, and general exceptions, with relevant context and metrics for each scenario. [1] [2] [3]

Dependency injection and helper usage:

  • Integrated TelemetryHelper and ILogger<Chat> into the API endpoints for consistent telemetry and logging. [1] [2]
  • Updated using statements to include necessary helpers. [1] [2]

CI/CD and Template Validation Automation:

GitHub Actions workflows:

  • Added a new workflow .github/workflows/azure-dev.yml to automate Azure deployment via the azd tool, including Azure login, environment setup, and deployment steps.
  • Introduced .github/workflows/azd-template-validation.yml to schedule and manually trigger template validation using Microsoft's template validation action, improving CI reliability for infrastructure-as-code.

These changes collectively improve the maintainability, observability, and operational robustness of the chat API and deployment process.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Prachig-Microsoft and others added 27 commits March 20, 2026 20:23
…from user input'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…from user input'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…tion-pipeline

ci: Refactor azure-dev and azd-template-validation workflows
feat: Enhance Application Insights logging configuration
chore: dependabot packages update

try
{
_telemetryClient.TrackDependency(dependencyName, commandName, startTime, duration, success);
Comment on lines +53 to +56
catch (Exception ex)
{
_logger.LogError(ex, "Failed to track event: {EventName}", eventName);
}
Comment on lines +76 to +79
catch (Exception ex)
{
_logger.LogError(ex, "Failed to track exception");
}
Comment on lines +101 to +104
catch (Exception ex)
{
_logger.LogError(ex, "Failed to track dependency: {DependencyName}", dependencyName);
}
Comment on lines +124 to +127
catch (Exception ex)
{
_logger.LogError(ex, "Failed to track metric: {MetricName}", metricName);
}
Comment on lines +146 to +149
catch (Exception ex)
{
_logger.LogError(ex, "Failed to set activity tag: {Key}", key);
}
Comment on lines +166 to +169
catch (Exception ex)
{
_logger.LogError(ex, "Failed to flush telemetry client");
}
Prekshith-Microsoft and others added 2 commits April 9, 2026 11:56
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
fix: add bicep version requirement (>= 0.33.0) to azure.yaml
ci: workflow to automate the validation of Bicep parameter files
try:
data = json.loads(sanitized)
params = data.get("parameters", {})
except json.JSONDecodeError:
Thanusree-Microsoft and others added 5 commits April 9, 2026 17:30
Added notes about security restrictions and Azure OpenAI quota availability.
Added note about potential security restrictions affecting deployment.
…names

fix: Update parameter names for standardization
…-parameter-names

fix: Update parameter names for standardization"
fix: Filter the paths to run the pipeline
docs: Added content in Readme and deploymentguide for SFI issue
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.