-
Notifications
You must be signed in to change notification settings - Fork 289
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
mark Instrumentation Key APIs Obsolete #2592
Conversation
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the TelemetryConfiguration class. | ||
/// </summary> | ||
/// <param name="instrumentationKey">The instrumentation key this configuration instance will provide.</param> | ||
[Obsolete("InstrumentationKey based global ingestion is being deprecated. Transition to using connection strings for data ingestion. https://aka.ms/MigrateToConnectionString")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cartersocha, need to review the messaging here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@@ -44,6 +44,7 @@ public static IApplicationBuilder UseApplicationInsightsExceptionTelemetry(this | |||
/// <param name="services">The <see cref="IServiceCollection"/> instance.</param> | |||
/// <param name="instrumentationKey">Instrumentation key to use for telemetry.</param> | |||
/// <returns>The <see cref="IServiceCollection"/>.</returns> | |||
[Obsolete("InstrumentationKey based global ingestion is being deprecated. Transition to using connection strings for data ingestion. https://aka.ms/MigrateToConnectionString")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for an user of this API, this message is not telling how to migrate. The link is for an overall migration approach.
@TimothyMothra I think we should offer specific alternate for each method we are Obsoleting. |
@cijothomas I did both. |
@@ -21,6 +21,7 @@ public static partial class ApplicationInsightsExtensions | |||
/// <param name="services">The <see cref="IServiceCollection"/> instance.</param> | |||
/// <param name="instrumentationKey">Instrumentation key to use for telemetry.</param> | |||
/// <returns>The <see cref="IServiceCollection"/>.</returns> | |||
[Obsolete("InstrumentationKey based global ingestion is being deprecated. Use an AddApplicationInsightsTelemetryWorkerService() overload to set ApplicationInsightsServiceOptions.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the message is not very clear to me.
There is simply no other overload which takes ConnectionString. So suggesting to use an overload without being very clear which overload we are talking about can be confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed all the messages and added additional details.
I reworded this specific message to say Use the AddApplicationInsightsTelemetryWorkerService() overload which accepts Action<ApplicationInsightsServiceOptions> and set ApplicationInsightsServiceOptions.ConnectionString.
#2560
Changes