-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Event arguments are not retrieved #15524
Comments
An additional note. I can see a similar bug was fixed in the Query library 12 days ago (#13042) - Is this something the Microsoft.Azure.ApplicationInsights package depends on internally? If so, then the fix might just be to rebuild and re-publish this package |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azmonapplicationinsights. |
Thank you for your feedback. Tagging and routing to the team best able to assist. |
//cc: @geneh |
There's a stack overflow conversation on this here that may be useful: https://stackoverflow.com/questions/64100878/alternative-to-https-www-nuget-org-packages-microsoft-azure-applicationinsight/64116244?noredirect=1#comment113389724_64116244 |
Yes, please switch to https://www.nuget.org/packages/Microsoft.Azure.ApplicationInsights.Query. |
Fair enough. As well as doing that, would someone mind updating the documentation over here? The sample code will also be out of date now too :-) |
Yes, thanks for reporting this. |
@geneh It looks like the same fix which was applied to EventsResultDataCustomDimensions in 58a48f0 needs to be applied to EventsResultDataCustomMeasurements as well. |
The documentation has been updated. |
I am trying to retrieve custom event data from Application Insights using this package: https://www.nuget.org/packages/Microsoft.Azure.ApplicationInsights
The custom event names are being correctly deserialized, but the custom event data (which is passed via a TelemetryClient object in another solution) isn't. The data is available in the Azure portal, so there is either a bug in the API surface being used by this library or (more likely) the deserialization code.
Expected:
EventsCustomEventResult.CustomDimensions and EventsCustomEventResult.CustomMeasurements are not null (ideally the additional properties should contain a list of string names and string pairs, respectively).
Actual:
The object is null for custom events that do contain custom properties.
Repro:
Ensure that custom events with additional properties exist in an ApplicationInsights instance (This is easily done with the TelemetryClient) and then run this code:
.NET Core SDK (reflecting any global.json):
Version: 3.1.402
Commit: 9b5de826fd
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19041
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.402\
The text was updated successfully, but these errors were encountered: