Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation message for legacy telemetry #673

Merged
merged 25 commits into from
May 21, 2024

Conversation

Gnol-VN
Copy link
Member

@Gnol-VN Gnol-VN commented May 10, 2024

Why is this change?

This change is the first enforcement to warn consumers that OmexLogger.cs and ActivityEventSender.cs are no longer maintained and ready for removal by 1 July 2024.

What is changed in this PR?

For logging: files related to OmexLogger.cs and this event source Microsoft-OMEX-Logs-Ext are marked Obsolete.
For metrics: file related to ActivityEventSender.cs and this event source Microsoft-OMEX-TimedScopes-Ext are marked Obsolete.

What to prepare by 1 July 2024

We will put stronger enforcement to disable OmexLogger and ActivityEventSender. Upcoming change are

  1. Adding IOption to enable OmexLogger and ActivityEventSender
  2. Remove default registration of OmexLogger and ActivityEventSender
  3. OmexLogger and ActivityEventSender are removed by 1 July 2024

For logging: Consumers need to find an alternative way to register a new log provider for now. Omex will try to ship OpenTelemetry logger in the future as default logger.
For metrics: Consumers can rely on existing ActivityMetricSender.cs to get metrics by OpenTelemetry metric sdk. Consumers are recommended and have your own metric exporter to transfer metrics to a destination, such as Azure Application Insight, a database like MSSQL or MongoDB, etc,.

@Gnol-VN Gnol-VN marked this pull request as ready for review May 10, 2024 14:07
@Gnol-VN Gnol-VN requested a review from a team as a code owner May 10, 2024 14:07
@Gnol-VN Gnol-VN requested a review from artempushkin May 10, 2024 14:15
@Gnol-VN Gnol-VN enabled auto-merge (squash) May 10, 2024 14:22
@Gnol-VN Gnol-VN requested a review from artempushkin May 10, 2024 15:29
@Gnol-VN Gnol-VN requested a review from K-Cully May 13, 2024 14:24
src/Logging/ServiceCollectionExtensions.cs Outdated Show resolved Hide resolved
src/Logging/InitializationLogger.cs Outdated Show resolved Hide resolved
src/Hosting/ServiceCollectionExtensions.cs Outdated Show resolved Hide resolved
src/Hosting.Services/HostBuilderExtensions.cs Outdated Show resolved Hide resolved
src/Hosting.Services/HostBuilderExtensions.cs Show resolved Hide resolved
@Gnol-VN Gnol-VN requested a review from artempushkin May 13, 2024 16:54
@microsoft microsoft deleted a comment from artempushkin May 16, 2024
@Gnol-VN Gnol-VN requested a review from artempushkin May 16, 2024 17:00
@Gnol-VN Gnol-VN merged commit 88b74b3 into main May 21, 2024
5 checks passed
@Gnol-VN Gnol-VN deleted the dothanhl/feature/depreacate_warning_legacy_telemetry branch May 21, 2024 14:49
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.

4 participants