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

Application Insights instrumentation keys are being deprecated #3376

Closed
tswelsh opened this issue Jun 27, 2023 · 3 comments
Closed

Application Insights instrumentation keys are being deprecated #3376

tswelsh opened this issue Jun 27, 2023 · 3 comments

Comments

@tswelsh
Copy link

tswelsh commented Jun 27, 2023

User story
As a user, I want to be able to use Application Insights connection strings to ingest telemetry so that I don't have to use the deprecation instrumentation key approach.

Acceptance criteria

  1. When I supply an application insights connection string via configuration, then the application insights telemetry uses it over any instrumentation key present.

Application insights telemetry is added here:

private void AddApplicationInsightsTelemetry(IServiceCollection services)
. This explicitly looks for an InstrumentationKey specified in configuration. However ingestion based on instrumentation keys is being phased out; see e.g. https://azure.microsoft.com/en-gb/updates/technical-support-for-instrumentation-key-based-global-ingestion-in-application-insights-will-end-on-31-march-2025/. Therefore we'd like the option to use an application insights connection string ready for the transition.

AB#104859

@EXPEkesheth
Copy link
Collaborator

@tswelsh - We are actively working on migrating to OTEL provider. The configurations will be updated soon to map to OTEL.

@EXPEkesheth EXPEkesheth added the Review Tag for PM/Dev Review label Jul 17, 2023
@EXPEkesheth EXPEkesheth added VSTS-Current We are working on this item in the current sprint and removed Review Tag for PM/Dev Review labels Jul 31, 2023
@EXPEkesheth
Copy link
Collaborator

@tswelsh to use the connection string with Application Insights, update the Telemetry section in appsettings.json
Below are the details on the attributes used in telemetry section

  • Provider : Telemetry provider is “ApplicationInsights” or “OpenTelemetry”, or “None” for disabling telemetry logging.
  • InstrumentationKey : The instrumentation key of your Application Insights resource.
  • ConnectionString : The connection string of your Application Insights resource.

Note :

  1. Technical support for instrumentation key-based logging in Application Insights will end in March 2025.
  2. When the instrumentation key and connection string are provided in appsettings.json for ApplicationInsights provider, the instrumentation key will be used.

Let us know if you have any further questions

@EXPEkesheth EXPEkesheth removed the VSTS-Current We are working on this item in the current sprint label Mar 4, 2024
@EXPEkesheth
Copy link
Collaborator

@tswelsh closing the issue as there is no further action. Please open another issue for any questions.

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

No branches or pull requests

2 participants