Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 4673e1b

Browse files
timgrahamreyang
authored andcommitted
Fix FlaskMiddleware path in docs and examples (#709)
1 parent df83b41 commit 4673e1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contrib/opencensus-ext-pyramid/examples/app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def main(global_config, **settings):
3737
config.add_route('hello', '/')
3838
config.add_route('trace_requests', '/requests')
3939

40-
config.add_tween('opencensus.trace.ext.pyramid'
40+
config.add_tween('opencensus.ext.pyramid'
4141
'.pyramid_middleware.OpenCensusTweenFactory',
4242
over=MAIN)
4343

docs/trace/usage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ for a Flask application:
159159

160160
.. code:: python
161161
162-
from opencensus.trace.ext.flask.flask_middleware import FlaskMiddleware
162+
from opencensus.ext.flask.flask_middleware import FlaskMiddleware
163163
164164
app = flask.Flask(__name__)
165165
@@ -195,7 +195,7 @@ requests will be automatically traced.
195195

196196
.. code:: python
197197
198-
from opencensus.trace.ext.flask.flask_middleware import FlaskMiddleware
198+
from opencensus.ext.flask.flask_middleware import FlaskMiddleware
199199
200200
app = flask.Flask(__name__)
201201
@@ -265,7 +265,7 @@ traced.
265265
def main(global_config, **settings):
266266
config = Configurator(settings=settings)
267267
268-
config.add_tween('opencensus.trace.ext.pyramid'
268+
config.add_tween('opencensus.ext.pyramid'
269269
'.pyramid_middleware.OpenCensusTweenFactory')
270270
271271
To configure the sampler, exporter, and propagator, pass the instances

0 commit comments

Comments
 (0)