Comments (7)
This is fixed in 2.4.3.
from beeline-python.
Thanks for the report! I have a fix in the works now and it should be released later today as 2.4.2 after I get it reviewed.
We do run the code through pyflakes and it is usually good at finding things like this, but apparently it doesn't catch unused function arguments because it's sometimes valid to define function arguments that go unused (implementing an interface, for example). I also tried pylint but it also didn't catch it. (it did catch some other issues - yay! so we're going to integrate that into our CI/CD going forward). I did add/update some tests to ensure this behavior works in the future.
from beeline-python.
WRT linters, I do think it's better to turn off such a rule (unused argument) on a line-by-line basis than turn it off completely. It's very rare to intentionally have a function with unused args... (interfaces in python?)...
Anyway, thanks for the speedy response. I would add also that a multi-threaded example of tracing with beeline would be very helpful. Clearly you took the time to make sure it works properly in the face of MT with TLS, so an example of tracing with parallel sub-spans would really shine. I found it tricky to get it to work, having to pass the trace_id and parent span id manually across threads.
from beeline-python.
We do mention it here in our official docs: https://docs.honeycomb.io/beeline/python/#using-traces - see "Threading and Traces". We haven't received any feedback from anyone using it yet though. Are the docs there consistent with your experience? Would appreciate any feedback you have. I'm sure there are things we could do to make it a smoother experience.
This issue will close when I land #47 but if you reply here I'll keep an eye on it. Thanks!
from beeline-python.
Oh I guess I missed that. Will give it a try next week.
Really appreciate the quick fix.
from beeline-python.
@tredman would you agree that the context manager should return a reference to the tracer?
Otherwise we can't do:
with beeline.tracer("name") as trace:
start_thread_and_pass_trace(trace)
...
from beeline-python.
Yes, good catch! I'll open a new issue, thanks.
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.