Comments (17)
FYI: I tried to bypass the exception it didn't seem to work:
def install(self):
if not hasattr(lambda_bootstrap, 'make_final_handler'):
setattr(lambda_bootstrap, 'make_final_handler', None)
old_make_final_handler = lambda_bootstrap.make_final_handler
from sentry-python.
from sentry-python.
also please tell me the output of the following on AWS (without sentry-sdk installed):
import sys
import __main__
print(__main__.__file__)
print(list(
(n, m.__file__) for n, m in sys.modules.items()
))
from sentry-python.
Oh! @alonre, I'm sorry, it wasn't clear that you were getting this exception while deploying! I'll push out a fix soon, hang tight.
from sentry-python.
I just release 0.3.11. If that doesn't fix the issue please give me the output of the print
s above.
from sentry-python.
Will this work on localhost when testing? I mean, I want to run my functions, but not in AWS lambda.
from sentry-python.
It will just disable the integration if it's not in AWS Lambda. What are you testing your application with?
from sentry-python.
Thanks @untitaker, chalice deploy
now works with 0.3.11.
However, I'm not sure I'm getting exceptions sent to Sentry.
I've disabled the integration and got the printouts you requested (attached).
Thanks for looking into this!
sentry_sdk_debug_print.txt
from sentry-python.
Could you enable debug=True
in your call to init
and get me the output? I wonder if the integration thinks it's not on AWS
from sentry-python.
This is what I got (tested couple of times).
Does this make sense?
[sentry] DEBUG: Shutting down HTTP transport orderly
[sentry] DEBUG: background worker got shutdown request
[sentry] DEBUG: background worker shut down
[sentry] DEBUG: Killing HTTP transport
[sentry] DEBUG: background worker got kill request
[sentry] DEBUG: Shutting down HTTP transport orderly
[sentry] DEBUG: background worker got shutdown request
[sentry] DEBUG: background worker shut down
[sentry] DEBUG: Killing HTTP transport
[sentry] DEBUG: background worker got kill request
from sentry-python.
from sentry-python.
Running in AWS:
[DEBUG] 2018-10-09T21:00:04.298Z __main__ hasattr('make_final_handler'): True
from sentry-python.
Hmm, that sucks. So to summarize, you have a Lambda function that works normally but doesn't send events? Could you share the code?
from sentry-python.
- Yes - the Lambda is working great
- No - can't share code* (proprietary)
(* I'll try creating a simple "chalice" App and verify I can reproduce the same behavior - and will share that code)
However, I wrote a tiny wrapper to workaround this and managed to get events:
def capture_exceptions(function):
@functools.wraps(function)
def wrapper(*args, **kwargs):
try:
return function(*args, **kwargs)
except Exception as ex:
sentry_sdk.capture_exception(ex)
raise ex
return wrapper
from sentry-python.
from sentry-python.
Ok cool.
I opened #117.
I might be able to help with the integration.
Leaving it up to you whether to close this one...
from sentry-python.
Closing as remaining AWS Lambda issues should be about missing framework support
from sentry-python.
Related Issues (20)
- Monitor config `TypedDict`
- Metrics Normalization
- Async monitor decorator makes type checking complex HOT 2
- python3 dependency hell HOT 5
- Events are not being sent when `before_send` is set HOT 2
- Sentry and serverless sdk not working well together HOT 1
- [Python] Enhancements to Cache instrumentation
- [Python] Enhancements to Queue instrumentation HOT 1
- [Metrics] Remove obsolete options
- [Metrics] Expose more parameters to `before_emit_metric`
- Queue instrumentation enhancements: Celery integration
- Add queue or topic to Celery transactions/spans HOT 1
- Caching module update for DjangoIntegration
- Caching module update for RedisIntegration
- New Memcached caching module
- Send message size information (Celery) HOT 1
- Send Celery ID information HOT 1
- Send Celery Message ID
- Runtime `TypeError`s due to incorrect conditional handling of `Event` and `Hint` types HOT 1
- grpclib support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-python.