Git Product home page Git Product logo

basictracer-python's People

Contributors

bensigelman avatar bg451 avatar bhs avatar carlosalberto avatar cybergrind avatar djanku avatar eirinikos avatar gabrielfalcao avatar jamim avatar jayvdb avatar lcapaldo avatar lookfwd avatar nhsiehgit avatar noah-huppert avatar pikbot avatar yurishkuro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

basictracer-python's Issues

New release?

Would it be possible to publish a release? We are seeing some folks bit by #43 which does have a workaround but people are learning it the hard way.

Chance of negative ID

Hi,
I'm curious about the subtraction of 1 when generating new ID. Why is it here? The output of random.Random().getrandbits(k) is already in range [0,2^(k-1)], so subtracting 1 can result in new ID equal to -1 (even though with probability 1/2^64).

return guid_rng.getrandbits(64) - 1

may be necessary to vendor protobuf :-/

This is really a pip bug, but the following stack trace came from a mature python+django installation that already used protobuf locked at 2.6.1... it did not play nice with the proto stuff in basictracer-py.

Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    execute_from_command_line(sys.argv)
  File "/appenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/appenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    settings.INSTALLED_APPS
  File "/appenv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__
    self._setup(name)
  File "/appenv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/appenv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 94, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/appenv/REDACTED/settings.py", line 13, in <module>
    import lightstep.tracer
  File "/appenv/local/lib/python2.7/site-packages/lightstep/tracer.py", line 11, in <module>
    from basictracer import BasicTracer
  File "/appenv/local/lib/python2.7/site-packages/basictracer/__init__.py", line 3, in <module>
    from .tracer import BasicTracer
  File "/appenv/local/lib/python2.7/site-packages/basictracer/tracer.py", line 6, in <module>
    from .propagation import BinaryPropagator, TextPropagator
  File "/appenv/local/lib/python2.7/site-packages/basictracer/propagation.py", line 9, in <module>
    from .wire_pb2 import TracerState
  File "/appenv/local/lib/python2.7/site-packages/basictracer/wire_pb2.py", line 22, in <module>
    serialized_pb=_b('\n\nwire.proto\x12\x13\x62\x61sictracer_go.wire\"\xc1\x01\n\x0bTracerState\x12\x10\n\x08trace_id\x18\x01 \x01(\x06\x12\x0f\n\x07span_id\x18\x02 \x01(\x06\x12\x0f\n\x07sampled\x18\x03 \x01(\x08\x12I\n\rbaggage_items\x18\x04 \x03(\x0b\x32\x32.basictracer_go.wire.TracerState.BaggageItemsEntry\x1a\x33\n\x11\x42\x61ggageItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x06Z\x04wireb\x06proto3')
TypeError: __init__() got an unexpected keyword argument 'syntax'

Fix the lint

make lint gives tons of errors. Once fixed, we should change .travis.yml to say make test lint

Tests fail against Python 3.x

Per @cybergrind's comment:

Unfortunately protobuf tests aren't fine on python 3 due discrepancies in implementation of bytearray support
https://travis-ci.org/opentracing/basictracer-python/jobs/153806259
Looks like protocolbuffers/protobuf#1173 caused it

I believe we can get rid of jumpahead now just to not break current applications that aren't rely on protobuf serialization and fix tests in separate branch. Btw it isn't look like it going to be fixed in nearest future in protobuf repo.

start_span does not allow scalar reference

When I was testing with the earlier 2.0.dev1 version, I could say references=opentracing.child_of(x). Now it breaks because the code always expects references to be an array. Is that intentional?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.