Comments (1)
I've just run into what seems to be the same issue. It looks like the problem is with this line
specifically the signals check and not signals.signals_available
.
for me signals.signals_available
is True.
For signals to work in Flask you need a library called blinker
. When I remove blinker, signals.signals_available
becomes False and my error spans are restored.
I think the real bug might lie in this file / with how Honeycomb is using signals?
beeline-python/beeline/middleware/flask/__init__.py
Lines 18 to 19 in 7c5268e
specifically in this function
beeline-python/beeline/middleware/flask/__init__.py
Lines 27 to 33 in 7c5268e
It seems like it adds a callback for Flask signals to call at the end of the request but for me the exception that is being based in is
None
and I believe this is due to already being handled by my custom error handlers in Flask. By the time the code gets here there is no Exception, its now just a normal response object that is a 500 with some json.
Removing all my custom error handlers (and running flask locally not in development mode - to stop flasks built in error handler) the error spans also reappear - this time with blinker installed
from beeline-python.
Related Issues (20)
- 'WSGIRequest' object has no attribute 'headers' HOT 1
- beeline.tracer() context manager does not handle exceptions HOT 4
- Add type annotations for mypy? HOT 4
- test
- test HOT 1
- off-by-one error in `_should_sample` HOT 1
- Enable Beeline to simultaneously accept w3c and honeycomb propagation headers HOT 1
- Drop support for Python 2.7
- Update libhoney-py dependency to latest HOT 1
- Beeline tracing decorator does preserve function signature HOT 3
- middleware and patch docs are 404'ing HOT 3
- Django query tracing only logs duration for successful queries. HOT 2
- update for e&s
- Categorize span types on send
- Duration math is done with naive datetime objects, won't handle clock changes mid-process HOT 4
- Determine (and update) minimum supported Django version
- Missing transitive dependency from libhoney (six)
- Drop support for Python 3.5, 3.6
- beeline middlware for flask has initialization problem with flask 2.3.x HOT 3
- 'Cursor' object has no attribute 'lastrowid'
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 beeline-python.