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

[AzureMonitor] refactor EventSource after LiveMetrics move #48640

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TimothyMothra
Copy link
Contributor

Follow up to #48498.

  • This PR cleans up EventSource classes.
    We decided that the LiveMetrics project would have it's own EventSource class that gets included in the other project.
    This removes most of the preprocessors needed in the previous PR.

  • Shared files in the Exporter project still need to call EventSource classes for logging. This could be improved on at a later date.

  • Any EventSource method not used by that project has been removed.

@github-actions github-actions bot added Monitor - Distro Monitor OpenTelemetry Distro Monitor - Exporter Monitor OpenTelemetry Exporter Monitor - LiveMetrics labels Mar 8, 2025
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@@ -54,8 +54,8 @@ public static ConnectionVars GetValues(string connectionString)
AzureMonitorExporterEventSource.Log.FailedToParseConnectionString(ex);
#elif ASP_NET_CORE_DISTRO
AzureMonitorAspNetCoreEventSource.Log.FailedToParseConnectionString(ex);
#else
System.Diagnostics.Debug.Write(ex.ToString());
#elif LIVE_METRICS_PROJECT
Copy link
Contributor

Choose a reason for hiding this comment

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

Recommend just using else here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor - Distro Monitor OpenTelemetry Distro Monitor - Exporter Monitor OpenTelemetry Exporter Monitor - LiveMetrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants