Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed regressions due to automated dependency updates #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.8.0b1-stretch
FROM python:3.8.2-buster

RUN apt-get update \
&& apt-get clean \
Expand Down
14 changes: 8 additions & 6 deletions demo-app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,23 @@
from flask import Flask, render_template, request

from opencensus.trace import execution_context
from opencensus.trace.exporters import stackdriver_exporter
from opencensus.trace.exporters.transports import background_thread
from opencensus.trace.ext.flask.flask_middleware import FlaskMiddleware
from opencensus.common.transports.async_ import AsyncTransport
from opencensus.ext.stackdriver import trace_exporter as stackdriver_exporter
from opencensus.ext.flask.flask_middleware import FlaskMiddleware
from opencensus.trace.propagation import google_cloud_format
from opencensus.trace.samplers import always_on
from opencensus.trace import samplers


app = Flask(__name__)

topic_name = 'tracing-demo'

# Configure Tracing
exporter = stackdriver_exporter.StackdriverExporter(
transport=background_thread.BackgroundThreadTransport)
transport=AsyncTransport)

propagator = google_cloud_format.GoogleCloudFormatPropagator()
sampler = always_on.AlwaysOnSampler()
sampler = samplers.AlwaysOnSampler()
blacklist_paths = ['favicon.ico']

# Instrument Flask to do tracing automatically
Expand Down
5 changes: 3 additions & 2 deletions demo-app/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
google-cloud-monitoring==0.31.1
google-cloud-pubsub==0.42.1
google-cloud-trace==0.21.0
gunicorn==19.9.0
opencensus==0.6.0
gunicorn==20.0.4
opencensus-ext-stackdriver==0.7.2
opencensus-ext-flask==0.7.3
Flask==1.1.1