Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@evgenyfedorov2
Copy link
Member

@evgenyfedorov2 evgenyfedorov2 commented Jun 20, 2025

Resolves #6532

@evgenyfedorov2 evgenyfedorov2 force-pushed the users/evgenyfedorov2/fix_service_enricher_api branch from bbc09ed to ed2d9bc Compare June 23, 2025 08:08
@evgenyfedorov2 evgenyfedorov2 force-pushed the users/evgenyfedorov2/fix_service_enricher_api branch from ed2d9bc to 79e5bec Compare June 23, 2025 08:10
@evgenyfedorov2 evgenyfedorov2 marked this pull request as ready for review June 23, 2025 08:10
@evgenyfedorov2 evgenyfedorov2 requested review from a team as code owners June 23, 2025 08:10
@evgenyfedorov2 evgenyfedorov2 changed the title Rename service log enricher public API Deprecate AddServiceLogEnricher method with its overloads, introduce replacements Jun 23, 2025
@evgenyfedorov2
Copy link
Member Author

@joperezr please review for dotnet-extensions-infra. This is not a breaking change yet, just a normal process of introducing new API instead of old

@joperezr
Copy link
Member

@joperezr please review for dotnet-extensions-infra. This is not a breaking change yet, just a normal process of introducing new API instead of old

It is adding obsolete attributes to some APIs which is a breaking change though. Should we delay that till next major version bump?

@evgenyfedorov2 evgenyfedorov2 added the * NO MERGE * Do not merge this PR as long as this label is present. label Jun 27, 2025
@evgenyfedorov2
Copy link
Member Author

to be merged for 10.0.0 release only

Copilot AI review requested due to automatic review settings October 30, 2025 14:22
Copy link
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 renames the "Service Log Enricher" API to "Application Log Enricher" to better reflect its functionality. The existing AddServiceLogEnricher() methods are marked as obsolete with redirects to the new AddApplicationLogEnricher() methods, ensuring backward compatibility during the transition period.

Key changes:

  • New AddApplicationLogEnricher() methods marked as experimental APIs
  • Obsoleted the old AddServiceLogEnricher() methods with diagnostic ID EXTOBS0002
  • Updated all test files, documentation, and internal references to use the new naming

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ApplicationEnricherServiceCollectionExtensions.cs Added new AddApplicationLogEnricher() methods and obsoleted old AddServiceLogEnricher() methods with forwarding implementations
DiagnosticIds.cs Added EXTOBS0002 diagnostic ID and obsolete message for the telemetry API transition
ApplicationLogEnricherOptions.cs Updated XML documentation from "service" to "application" log enricher
README.md Updated documentation examples to use new AddApplicationLogEnricher() method names
list-of-diagnostics.md Added documentation entry for EXTOBS0002 obsolete diagnostic
ApplicationEnricherExtensionsTests.cs Updated tests to use new AddApplicationLogEnricher() method names
ApplicationEnricherOptionsTests.cs Renamed test method to reflect new naming convention
ApplicationLogEnricherTests.cs Renamed variables and test methods for consistency with new naming
ServiceEnricherExtensionsTests.cs New test file for obsolete API validation
Microsoft.Extensions.Telemetry.Tests.csproj Added NoWarn for CS0436 and InjectObsoleteAttributeOnLegacy configuration
Microsoft.Extensions.Telemetry.csproj Added NoWarn for CS0436 and InjectObsoleteAttributeOnLegacy configuration

evgenyfedorov2 and others added 2 commits October 30, 2025 15:33
…ationEnricherServiceCollectionExtensions.cs

Co-authored-by: Copilot <[email protected]>
…ationEnricherServiceCollectionExtensions.cs

Co-authored-by: Copilot <[email protected]>
@evgenyfedorov2 evgenyfedorov2 removed the * NO MERGE * Do not merge this PR as long as this label is present. label Oct 30, 2025
@evgenyfedorov2
Copy link
Member Author

@joperezr could you please review, approve, merge?

@joperezr
Copy link
Member

joperezr commented Nov 4, 2025

/azp run extensions-ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@joperezr joperezr left a comment

Choose a reason for hiding this comment

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

Minor NIT but looks good otherwise.

@joperezr
Copy link
Member

joperezr commented Nov 4, 2025

I queued a rebuild given we added net10 TFM to the repo, so just to make sure that these new tests work there as well

@evgenyfedorov2 evgenyfedorov2 enabled auto-merge (squash) November 6, 2025 11:14
@evgenyfedorov2 evgenyfedorov2 merged commit 9362240 into dotnet:main Nov 6, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate AddServiceLogEnricher method with its overloads

4 participants