In 3.0 the TrackEvent method was changed so that it mutates the properties dictionary that is passed into it. In 2.x, you could pass an immutable IDictionary without error, and now you get System.NotSupportedException: This value cannot be mutated coming from
|
properties.Add("microsoft.custom_event.name", eventName); |
. There's no mention of this in the 3.0 breaking changes page.
This is a bit more common an issue in F# where most of the time when you create an IDictionary it's immutable (via Map or dict) and you have to make the dictionary in non-idiomatic ways to have it be mutable.
In 3.0 the
TrackEventmethod was changed so that it mutates thepropertiesdictionary that is passed into it. In 2.x, you could pass an immutable IDictionary without error, and now you getSystem.NotSupportedException: This value cannot be mutatedcoming fromApplicationInsights-dotnet/BASE/src/Microsoft.ApplicationInsights/TelemetryClient.cs
Line 146 in fa9e617
This is a bit more common an issue in F# where most of the time when you create an IDictionary it's immutable (via
Mapordict) and you have to make the dictionary in non-idiomatic ways to have it be mutable.