[monitor - exporter] Add optional metrics/measurement param to track_event
#35681
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor
Monitor, Monitor Ingestion, Monitor Query
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Is your feature request related to a problem? Please describe.
Currently it's not possible to add customMetrics/measurements to a custom event in App Insights. This is possible with other SDKs (e.g. .NET - telemetryclient.trackevent)
Describe the solution you'd like
Adding an optional parameter to
track_event
for the metrics would bring it in line with other SDKs.Describe alternatives you've considered
I have looked at
TrackMetric
but specifically I want to add metrics to custom events (as I could in the .NET SDK). As a temporary workaround I'm converting the values to strings and adding it to the customDimensions.Additional context
I was redirected to this repo's issues page from this repo: https://github.com/microsoft/ApplicationInsights-Python
Any workarounds for this would be welcome also.
The text was updated successfully, but these errors were encountered: