Sitelet https://github.com/microsoft/ApplicationInsights-dotnet/issues/1221
Skip to content

SDK Connection Strings #1221

Description

Application Insights will start to support Connection Strings.
This will simplify the endpoint configuration necessary for some of our customers, specifically for customers that have a business need to connect to specific Azure Regions.
The Azure Portal will start displaying Connection Strings this week.
There will be an official blog post at a later date.

image

Ruleset

  1. check for explicit endpoint (location is ignored)
  2. check for endpoint suffix (location is optional)
  3. use classic endpoint (location is ignored)

Design

  • New property: TelemetryConfiguration.ConnectionString
  • New method: TelemetryConfiguration.SetConnectionString())
    Connection string needs to be parsed (via EndpointProvider) and validated.
    This method will set TelemetryConfiguration.InstrumentationKey.
    Resulting endpoints are set to TelemetryConfiguration.Endpoints (EndpointContainer).
    This method will also update TelemetryChannel.Endpoint

TODO

  • Need to integrate Javascript SDK with AspNetCore SDK. Waiting for new Javascript SDK to be released with connection string support.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions