census-instrumentation / opencensus-python

A stats collection and distributed tracing framework
Apache License 2.0
669 stars 250 forks source link

opencensus-ext-flask .30 no longer working with opencensus 0.6.0 #675

Closed allenjohnashton closed 5 years ago

allenjohnashton commented 5 years ago

Describe your environment. Python 2.7

opencensus==0.6.0                                                                                                                                                                                                                                                                     
opencensus-context==0.1.1                                                                                                                                                                                                                                                             
opencensus-ext-flask==0.3.0                                                                                                                                                                                                                                                           
opencensus-ext-gevent==0.1.0                                                                                                                                                                                                                                                          
opencensus-ext-google-cloud-clientlibs==0.1.2                                                                                                                                                                                                                                         
opencensus-ext-grpc==0.3.0                                                                                                                                                                                                                                                            
opencensus-ext-logging==0.1.0                                                                                                                                                                                                                                                         
opencensus-ext-postgresql==0.1.2                                                                                                                                                                                                                                                      
opencensus-ext-requests==0.1.2                                                                                                                                                                                                                                                        
opencensus-ext-sqlalchemy==0.1.2                                                                                                                                                                                                                                                      
opencensus-ext-stackdriver==0.4.0                                                                                                                                                                                                                                                     
opencensus-ext-threading==0.1.2  

Steps to reproduce.


  File "/usr/local/lib/python2.7/site-packages/opencensus/ext/flask/flask_middleware.py", line 32, in <module>
    from opencensus.trace.samplers import always_on
ImportError: cannot import name always_on```

**What is the expected behavior?**
Import works

**What is the actual behavior?**
Import Error

**Additional context.**
Looks like it just need to be released to Pypi.
reyang commented 5 years ago

@allenjohnashton Fixed, just published the new version to PyPi.

reyang commented 5 years ago

opencensus-ext-django 0.3.1

Released 2019-06-04

opencensus-ext-flask 0.3.1

Released 2019-06-04

allenjohnashton commented 5 years ago

Thanks!