Comments (9)
Thanks for reporting this one, if possible I'd like to get the provider tightened up for your use case here. If I've read the stack and scenario correctly the raygunmsgs.py platform.architecture()[0] call is failing, and you'd like a best-effort approach for getting the environment data so that it doesn't result in unhandled exceptions - is the right?
If that's the case one approach would be to guard set_environment_details
with an except, this approach is used in several of our other providers as access to environment data varies wildly between sub-frameworks. This would surface the safe properties first so it should degrade nicely and send the available env data without spamming your logs. Does this sound like what you're looking for?
from raygun4py.
Yes I think that's the case. I'm advocating for always raising an error to raygun, even if it's skinnier than normal rather than dropping the error to the log file.
Thanks, Alex
On 11 Oct. 2016, at 21:17, fundead [email protected] wrote:
Thanks for reporting this one, if possible I'd like to get the provider tightened up for your use case here. If I've read the stack and scenario correctly the raygunmsgs.py platform.architecture()[0] call is failing, and you'd like a best-effort approach for getting the environment data so that it doesn't result in unhandled exceptions - is the right?
If that's the case one approach would be to guard set_environment_details with an except, this approach is used in several of our other providers as access to environment data varies wildly between sub-frameworks. This would surface the safe properties first so it should degrade nicely and send the available env data without spamming your logs. Does this sound like what you're looking for?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from raygun4py.
Great, yeah that sounds like the right sort of behavior we should have. I'll ensure that a work item for this is put on the roadmap and fixed in the near term for you.
from raygun4py.
Thanks, what kind of an ETA are we looking at for this? Days/Weeks/Months?
Got a couple of pretty painful errors I need to work around if this is going to be a while.
from raygun4py.
I'll get a release out for you today containing a fix for this (next few hours).
e: Unfortunately I ran out of time to get this released, there's a PR at #51 but I need to port your implementation (thanks for the PR by the way, big help) and add a couple unit tests to fix the coverage. This should be live on Monday NZDT.
Regards,
Callum Gavin
Raygun Limited
from raygun4py.
Great thanks Callum
from raygun4py.
Hey Callum, any news on this one?
from raygun4py.
Hi Alex,
Unfortunately yesterday was a public holiday here so I've only just been able to get back into the office and finalize the PR. This is now complete and has been released as v3.1.3 on PyPI. Hope this fixes the noise in your logs and you continue to find Raygun useful.
Regards,
Callum Gavin
Raygun Limited
from raygun4py.
No problems Callum, thanks for the quick turn around. Really appreciate the effort! 😄
from raygun4py.
Related Issues (20)
- How to stop sending environment variables with errors with flask HOT 2
- AttributeError: 'Provider' object has no attribute '_is_coroutine' HOT 1
- AttributeError: 'dict' object has no attribute 'localVariables' HOT 1
- SyntaxError: invalid syntax - middleware/wsgi.py", line 43 HOT 2
- Any good reason to pin down the dependencies? HOT 4
- wsgi middleware syntax error python3 HOT 2
- Support new middleware style for Django 1.10 HOT 1
- Pypi build version outdated HOT 1
- Push latest version to PyPi?
- when i pip install, it always installs python2 version, how can i install python3 version HOT 1
- AttributeError: 'NoneType' object has no attribute 'set_user'
- Add git tags when publishing HOT 1
- Environment Variables are always sent to Raygun HOT 6
- Add support for wildcard matching of environment variable blacklist HOT 2
- Update Documentation related to callback functions
- Update Documentation with Best Practices for subclassing an exception
- Crashed on logging error from a POST in Django HOT 1
- RaygunErrorMessage serializer code falls into infinite loop and crashes python
- Documentation for Custom grouping logic has incorrect definition of the callback parameter HOT 3
- RaygunHandler fails when logging outside of an exception context.
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 raygun4py.