Skip to content

Shave 200+ms off cost to POST telemetry using proper connection str - #55127

Merged
dsplaisted merged 1 commit into
mainfrom
nagilson-use-proper-connection-key
Jul 3, 2026
Merged

Shave 200+ms off cost to POST telemetry using proper connection str#55127
dsplaisted merged 1 commit into
mainfrom
nagilson-use-proper-connection-key

Conversation

@nagilson

@nagilson nagilson commented Jul 2, 2026

Copy link
Copy Markdown
Member

Shave 200+ms off cost to POST telemetry using proper connection string over ikey

We should not use instrumentation keys, we should use connection strings.

If you want more motivation and context see #55126.

Testing with SDK ('unlimited' timeout):
full connString exits ~250-300ms
ikey connString exits ~535-557ms

…ing over ikey

We should not use instrumentation keys, we should use connection strings. 

If you want more motivation and context see #55126.

Testing with SDK ('unlimited' timeout):
full connString exits ~250-300ms
ikey connString exits ~535-557ms
Copilot AI review requested due to automatic review settings July 2, 2026 23:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the .NET CLI’s Azure Monitor OpenTelemetry exporter configuration to use a full Application Insights connection string (including explicit ingestion endpoint) instead of relying on an instrumentation-key-only string, with the intent of avoiding redirect overhead and reducing telemetry POST latency.

Changes:

  • Replace the Azure Monitor exporter ConnectionString value with a full connection string including IngestionEndpoint, LiveEndpoint, and ApplicationId.

@dsplaisted

Copy link
Copy Markdown
Member

FYI @baronfel

@dsplaisted
dsplaisted enabled auto-merge July 3, 2026 20:24
@dsplaisted
dsplaisted merged commit 0cfbeab into main Jul 3, 2026
27 checks passed
@dsplaisted
dsplaisted deleted the nagilson-use-proper-connection-key branch July 3, 2026 20:39
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 6, 2026
nagilson added a commit that referenced this pull request Jul 9, 2026
…ation key

Backport of #55127.

Use the proper Application Insights connection string (including
IngestionEndpoint, LiveEndpoint, and ApplicationId) instead of an
instrumentation-key-only connection string. Resolving the endpoints from a
bare instrumentation key requires an extra network round-trip; supplying the
full connection string shaves 200+ms off the cost to POST telemetry.

See #55127 for motivation and measurements.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
nagilson added a commit that referenced this pull request Jul 9, 2026
…ation key

Backport of #55127.

Use the proper Application Insights connection string (including
IngestionEndpoint, LiveEndpoint, and ApplicationId) instead of an
instrumentation-key-only connection string. Resolving the endpoints from a
bare instrumentation key requires an extra network round-trip; supplying the
full connection string shaves 200+ms off the cost to POST telemetry.

See #55127 for motivation and measurements.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit 52c27b6)
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

Successfully merging this pull request may close these issues.

3 participants