Skip to content

Breaking change from 3.0 not mentioned #3117

@ntwilson

Description

@ntwilson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xFor issues relating to beta or stable releases of the Shimbug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions