microsoft/ApplicationInsights-dotnet v3.1.0
microsoft/ApplicationInsights-dotnet
Captured source
source ↗published Apr 2, 2026seen Jun 26captured 1whttp 200method plain
3.1.0
Repository: microsoft/ApplicationInsights-dotnet
Tag: v3.1.0
Published: 2026-04-02T21:26:02Z
Prerelease: no
Release notes:
Version 3.1.0
- Make `TelemetryContext` properties public and propagate them via `TelemetryClient`.
- Add fallback to `APPLICATIONINSIGHTS_CONNECTION_STRING` environment variable for Base, Web, and NLog packages when connection string is not set via code.
- Update Azure.Monitor.OpenTelemetry.Exporter to 1.7.0. This includes updated mappings for telemetry context.
- Fix `OTEL_SDK_DISABLED` not being honored when `TelemetryConfiguration.DisableTelemetry` is set in DI scenarios., #3157
- Fix `TrackAvailability` ignoring user-specified `Timestamp` on `AvailabilityTelemetry`. The timestamp is now emitted as `microsoft.availability.testTimestamp` so downstream exporters can use the correct event time.
- Added `netstandard2.0` target framework to `Microsoft.ApplicationInsights` package to support customers with shared libraries targeting netstandard2.0.
- Fix `TelemetryClient.Context.Cloud.RoleName` set after construction now applies to all telemetry.
- Fix bug where Debug/Trace level logs from TrackTrace API were not emitted to Application Insights
- Fix Track API calls to not mutate the passed in dictionary if it is readonly
- Fix `NullReferenceException` in `TelemetryClient.Flush()` and `FlushAsync()` when called from DI scenarios
- Fix `ApplicationVersion` ignored: `ApplicationInsightsServiceOptions.ApplicationVersion` is now applied as `service.version` on the OpenTelemetry Resource for both AspNetCore and WorkerService packages
- Fix `HttpRequestExtensions.UnvalidatedGetHeader` always returning empty string instead of the actual header value. Restored max-length enforcement to guard against oversized header values.