Skip to content
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

Support for timestamp attribute in record_custom_event API #848

Open
sharma42 opened this issue Jun 26, 2023 · 0 comments
Open

Support for timestamp attribute in record_custom_event API #848

sharma42 opened this issue Jun 26, 2023 · 0 comments

Comments

@sharma42
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants