-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Replace Epsagon with Lumigo #1168
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
Conversation
Lumigo confirmed that the global `addExecutionTag` works in both manually-traced and auto-traced functions.
This matches what Lumigo uses internally, and will allow `LoggerService` to work with auto-traced functions without having to manually add the token to the service.
Coerce the Lumigo wrapper to our handler type instead of broadening the handler type. Fixes failing tests.
zhibek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @seb-cr. The implementation looks good to me, but I have questions about how this will work while auto-tracing is enabled (it's possible I've misunderstood how auto-tracing works).
I'm also requesting the auto vs manual setup of Lumigo be briefly explained in the in-line code documentation where we initialise the tracer.
corinja
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really good. The readme changes and Lumigo tests are very clear.
zhibek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With Lumigo confirming that "double-wrapping" is fine, I don't see the need for further changes. Looks good to me!
|
🎉 This PR is included in version 2.0.0-beta.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Epsagon is no longer operating. They took down their website on 3 October and backend services have been gradually removed, and since 10 October any service still making requests to Espagon servers faces delays and Lambda timeouts.
We have now migrated to Lumigo. Their platform supports auto-tracing, allowing us to begin monitoring without deploying updates to Lambda Wrapper, however we are missing our metrics and labels which correspond to Execution Tags in Lumigo.
This PR makes the change to wrap handlers with Lumigo's tracer, and updates our logger to use Execution Tags for metrics and labels. To enable Lumigo tracing and tags, set
LUMIGO_TRACER_TOKENin your Lambda environment to your Lumigo token. Note that if you have enabled auto-tracing, this will be set automatically and tracing should "just work".There are a couple of other little things that need doing (e.g. removing the
raiseOnEpsagonflag) that I'll cover in separate PRs.Jira: ENG-2764
BREAKING CHANGE: We no longer use Epsagon for monitoring. Lambda Wrapper now supports Lumigo instead.