3.1.0
Version 3.1.0
- Make
TelemetryContextproperties public and propagate them viaTelemetryClient. - Add fallback to
APPLICATIONINSIGHTS_CONNECTION_STRINGenvironment 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_DISABLEDnot being honored whenTelemetryConfiguration.DisableTelemetryis set in DI scenarios., #3157 - Fix
TrackAvailabilityignoring user-specifiedTimestamponAvailabilityTelemetry. The timestamp is now emitted asmicrosoft.availability.testTimestampso downstream exporters can use the correct event time. - Added
netstandard2.0target framework toMicrosoft.ApplicationInsightspackage to support customers with shared libraries targeting netstandard2.0. - Fix
TelemetryClient.Context.Cloud.RoleNameset 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
NullReferenceExceptioninTelemetryClient.Flush()andFlushAsync()when called from DI scenarios - Fix
ApplicationVersionignored:ApplicationInsightsServiceOptions.ApplicationVersionis now applied asservice.versionon the OpenTelemetry Resource for both AspNetCore and WorkerService packages - Fix
HttpRequestExtensions.UnvalidatedGetHeaderalways returning empty string instead of the actual header value. Restored max-length enforcement to guard against oversized header values.