File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
docs/examples/auto-instrumentation Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 10
10
# Otherwise, set variable to the commit of your branch on
11
11
# opentelemetry-python-contrib which is compatible with these Core repo
12
12
# changes.
13
- CONTRIB_REPO_SHA : f005d90ed3bc75ee6eb7297f9e3a6b55a55b22aa
13
+ CONTRIB_REPO_SHA : b404de2f393aaaeca73694c37fe58fecf423a707
14
14
15
15
jobs :
16
16
build :
Original file line number Diff line number Diff line change 15
15
from flask import Flask , request
16
16
17
17
from opentelemetry import propagators , trace
18
+ from opentelemetry .instrumentation .wsgi import collect_request_attributes
18
19
from opentelemetry .sdk .trace import TracerProvider
19
20
from opentelemetry .sdk .trace .export import (
20
21
ConsoleSpanExporter ,
21
22
SimpleExportSpanProcessor ,
22
23
)
23
24
from opentelemetry .trace .propagation .textmap import DictGetter
24
- from opentelemetry .util .http .wsgi import collect_request_attributes
25
25
26
26
app = Flask (__name__ )
27
27
Original file line number Diff line number Diff line change 25
25
26
26
from opentelemetry import trace
27
27
from opentelemetry .instrumentation .requests import RequestsInstrumentor
28
+ from opentelemetry .instrumentation .wsgi import OpenTelemetryMiddleware
28
29
from opentelemetry .sdk .trace import TracerProvider
29
30
from opentelemetry .sdk .trace .export import (
30
31
ConsoleSpanExporter ,
31
32
SimpleExportSpanProcessor ,
32
33
)
33
- from opentelemetry .util .http .wsgi import OpenTelemetryMiddleware
34
34
35
35
# FIXME This could likely be avoided by integrating this script into the
36
36
# standard test running mechanisms.
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ commands_pre =
105
105
distro: pip install {toxinidir}/opentelemetry-distro {toxinidir}/opentelemetry-distro
106
106
instrumentation: pip install {toxinidir}/opentelemetry-instrumentation
107
107
108
- getting-started: pip install -e {toxinidir}/opentelemetry-instrumentation -e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-requests {toxinidir}/opentelemetry-python-contrib/util/opentelemetry-util-http -e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-flask
108
+ getting-started: pip install -e {toxinidir}/opentelemetry-instrumentation -e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-requests {toxinidir}/opentelemetry-python-contrib/util/opentelemetry-util-http -e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-wsgi -e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation- flask
109
109
110
110
opencensus: pip install {toxinidir}/exporter/opentelemetry-exporter-opencensus
111
111
@@ -202,6 +202,7 @@ commands_pre =
202
202
-e {toxinidir}/opentelemetry-instrumentation \
203
203
-e {toxinidir}/opentelemetry-sdk \
204
204
-e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-requests \
205
+ -e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-wsgi \
205
206
-e {toxinidir}/opentelemetry-python-contrib/util/opentelemetry-util-http
206
207
207
208
commands =
You can’t perform that action at this time.
0 commit comments