Skip to content

[monitor - exporter] Add optional metrics/measurement param to track_event #35681

Open
@lewism77

Description

@lewism77

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.MonitorMonitor, Monitor Ingestion, Monitor QueryService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions