Skip to content

Add user-friendly macros to support optional properties, tags #16

Description

@ranweiler

As a user, I'd love a log/tracing-style mechanism where I can opt into initializing and registering a global client, and then using macros to simulate variadic calls that let me insert custom tags and properties.

In practice, this could look like:

appinsights::track_event!("my custom event"; k1 = "v1", k2 = ?v2, k3 = %v3);

In this example, the event name would be custom event, k1 would map to the string v1, k2 would map to the Debug impl for the value of v2, and k3 would map to the Display impl for the value of v3. This could (ideally) be supported in all event types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions