You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`EXTOBS0001`| This API is obsolete and will be removed in a future version. Consider using [Resource Monitoring observable instruments](https://learn.microsoft.com/dotnet/core/diagnostics/built-in-metrics-diagnostics#microsoftextensionsdiagnosticsresourcemonitoring). |
54
+
|`EXTOBS0002`| This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods. |
/// Adds an instance of the service enricher to the <see cref="IServiceCollection"/>.
47
+
/// </summary>
48
+
/// <param name="services">The <see cref="IServiceCollection"/> to add the service enricher to.</param>
49
+
/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="ApplicationLogEnricherOptions"/> in the service enricher.</param>
50
+
/// <returns>The value of <paramref name="services"/>.</returns>
51
+
/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception>
@@ -45,13 +90,14 @@ public static IServiceCollection AddServiceLogEnricher(this IServiceCollection s
45
90
}
46
91
47
92
/// <summary>
48
-
/// Adds an instance of the service enricher to the <see cref="IServiceCollection"/>.
93
+
/// Adds an instance of the application enricher to the <see cref="IServiceCollection"/>.
49
94
/// </summary>
50
-
/// <param name="services">The <see cref="IServiceCollection"/> to add the service enricher to.</param>
95
+
/// <param name="services">The <see cref="IServiceCollection"/> to add the application enricher to.</param>
51
96
/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="ApplicationLogEnricherOptions"/> in the service enricher.</param>
52
97
/// <returns>The value of <paramref name="services"/>.</returns>
53
98
/// <exception cref="ArgumentNullException">Any of the arguments is <see langword="null"/>.</exception>
Enriches logs with application-specific information based on `ApplicationMetadata` information. The bellow calls will add the service log enricher to the service collection.
131
+
Enriches logs with application-specific information based on `ApplicationMetadata` information. The bellow calls will add the application log enricher to the service collection.
internalconststringNonObservableResourceMonitoringApiMessage="This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.";
"This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.";
129
+
internalconststringObsoleteTelemetryApiMessage=
130
+
"This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.";
0 commit comments