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.

integration of the current new relic agent into Chalice handlers

See original GitHub issue

I wonder if there is anyone currently writing a library which might automaticcally integrate the new relic layer into Chalice handlers in app.py.

A Lambda can be instrumented based on this documentation. There is a small amount of wrapper code to be written around each Lambda, which seems to be a case for building a decorator to wrap it.

And this needs to work with automatic layering so that all the new relic dependencies are availalbe.

https://docs.newrelic.com/docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/enable-serverless-monitoring-using-lambda-layer

I am looking for something similar to what Sentry has done. The amount of code to add was minimal.

Something like this:

from sentry_sdk.integrations.chalice import ChaliceIntegration

sentry_sdk.init(
    dsn=ParamContainer.SENTRY_DSN,
    integrations=[ChaliceIntegration()]
)

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ShahBinoycommented, Sep 10, 2021

@jamesls Even after Using extension and layer, NewRelic instrumentation requires that we set the main starter function to be the function of NewRelic layer and pass in the actual lambda handler function name as an environment variable. This way the control passes through the NewRelic Handler and then gets forwarded to the actual Lambda function call. We need an ability to invoke NewRelic Layer function instead of main chalice function

0reactions
mrmikemoncommented, Feb 9, 2022

Any progress @ShahBinoy ? I’ve only just started at looking at NewRelic monitoring for a Chalice App.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Infrastructure agent v1.10.26 - New Relic Documentation
The agent now sends the integration name ( integrationName ) and version ( integrationVersion ) when any events are generated.
Read more >
NestJS Integration is Available - New Relic
Integrate NestJS using the New Relic Node.js agent. Because it uses the latest JavaScript patterns and is transpiled from TypeScript to ES5 ...
Read more >
Custom instrumentation for Vert.x based applications - Agents
This implementation is based on the assumption that one is able to control when a web transaction is started ( NewRelic.getAgent().
Read more >
Vert.x | New Relic Instant Observability
This quickstart automatically instruments Vert.x with the New Relic Java agent, and allows you to instantly monitor your Java application with out-of-the-box ...
Read more >
Guided install overview - New Relic Documentation
The guided install uses our command line interface (CLI), the infrastructure agent for your host environment, and a library of installation recipes to ......
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