question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a "metrics" proxy endpoint

See original GitHub issue

It should be used by the Frontend in order to send any kind of metric. Something like:

/api/v1/metrics/

{
  type: 'add-layer',
  params: {
    value: 'table_1',
    user_id: 'xxxx-xxxx-xxxx-xxxx',
    vis_id: 'xxxx-xxxx-xxxx-xxxx'
  }
}

It would need changes in frontend in order to send those events, but piece of cake.

cc @juanignaciosl @javitonino

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
juanignacioslcommented, Aug 19, 2016

That’s not such a bad idea indeed. constantize is safe (it will fail if params[:name] doesn’t match anything), so there’s no security risk. And I can’t foresee any security concern at new(params[:payload]) either, so that seems quite comfortable. Dynamic instantiation of clases is one of the few actual advantages/shortcuts of crappy dynamic languages, so go for it!

I’m becoming more open-minded, I guess 😄

0reactions
gfioravcommented, Aug 31, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Monitoring RDS Proxy metrics with Amazon CloudWatch
You can monitor RDS Proxy by using Amazon CloudWatch. CloudWatch collects and processes raw data from the proxies into readable, near-real-time metrics.
Read more >
pambrose/prometheus-proxy
Prometheus Proxy enables Prometheus to reach metrics endpoints running behind a firewall and preserves the pull model. The prometheus-proxy runtime comprises 2 ...
Read more >
Monitoring REST Proxy
The REST Proxy has two types of metrics. Global metrics help you monitor the overall health of the service. Per-endpoint metrics monitor each...
Read more >
Analytics metrics, dimensions, and filters reference
Custom Reports name Name to use in the management API Description Access Token access_token The app end user's OAuth acc... API Product api_product Cache Source ax_cache_source...
Read more >
Traffic Metrics - Kuma
You can add metrics to a mesh configuration, or to an individual data plane proxy configuration. For example, you might need metrics for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found