Skip to content

Support for timestamp attribute in record_custom_event API #848

@sharma42

Description

@sharma42

Is your feature request related to a problem? Please describe.

We publish custom events to new-relic using its record_custom_event API present in python agent and use nrql to create dashboards from those events. Requests processed by our applications are mostly async and we want to create dashboards to typical app metrics like traffic, latency, failure_rate, requests_stuck_until_last_x_mins etc.

The problem is these metrics are published at different timestamps which leads to formation of incorrect hypothesis when looking at a holistic dashboard. While we do publish a custom_timestamp field as well in our events, the plotting of events can only be done via timestamp field. We want an ability to pass a timestamp field in record_custom_event API for python agent so that we can keep all our events related to a single request in sync.

Feature Description

Update record_custom_event API signature to provide support for timestamp

record_custom_event(
                event_type,
                params,
                application,
                timestamp
            )

Describe Alternatives

We could've used simple event API that provides but then would have to re-write the entire logic of publishing events to NR. I see the python agent lib has a nice way of collecting sampled events and publishing them and we want to avoid re-inventing the wheel.

Additional context

None

Priority

Really Want

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new or enhanced features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions