Skip to content

Conversation

zhiyuanliang-ms
Copy link
Contributor

Description

Upgraded Microsoft.Extensions.Configuration.AzureAppConfiguration to 8.2.0.
Added tracing support for Azure App Configuration component.

Fixes # (issue)

Checklist

  • Is this feature complete?
    • [ x ] Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • [ x ] Yes
    • No
  • Did you add public API?
    • [ x ] Yes
      • If yes, did you have an API Review for it?
        • [ x ] Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • [ x ] No
  • Does the change require an update in our Aspire docs?

@Copilot Copilot AI review requested due to automatic review settings May 15, 2025 03:29
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label May 15, 2025
@github-actions github-actions bot added the area-integrations Issues pertaining to Aspire Integrations packages label May 15, 2025
Copy link
Contributor

@Copilot 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 pull request upgrades the Azure App Configuration package to version 8.2.0 and adds OpenTelemetry tracing support along with the corresponding configuration and tests.

  • Updated JSON configuration schema and tests to include the new "DisableTracing" property.
  • Implemented tracing enablement/disablement logic in component settings and extension methods.
  • Updated package references to the new version.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests/ConformanceTests.cs Added "DisableTracing" configuration property handling and implemented tracing method logic.
tests/Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests/ConfigurationTests.cs Added unit test to validate the default tracing behavior.
src/Components/Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration/ConfigurationSchema.json Updated schema to include the new "DisableTracing" property with description and default value.
src/Components/Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationSettings.cs Added the "DisableTracing" property with documentation.
src/Components/Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration/AspireAppConfigurationExtensions.cs Modified extension method to conditionally add tracing support based on the new property.
Directory.Packages.props Upgraded package versions to 8.2.0.

=> throw new NotImplementedException();
{
// wait for 1 seconds to ensure the refresh interval is exceeded
Task.Delay(1000).ConfigureAwait(false).GetAwaiter().GetResult();
Copy link
Member

Choose a reason for hiding this comment

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

Is there a better way to do this? Is there a way to "force" the refresh?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We used to have a "force" refresh api. But for some reason, we removed it. In our own testsuite, we also used "waiting for some time" way to test refresh. example

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

Looks good - assuming there is a better way to test besides waiting for a second.

@sebastienros sebastienros merged commit 3240c43 into dotnet:main May 15, 2025
254 checks passed
@zhiyuanliang-ms zhiyuanliang-ms deleted the zhiyuanliang/app-config-tracing branch June 2, 2025 14:27
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-integrations Issues pertaining to Aspire Integrations packages community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants