We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d08b82b commit 06cf6c2Copy full SHA for 06cf6c2
1 file changed
ext/opentelemetry-ext-flask/tests/test_automatic.py
@@ -69,6 +69,16 @@ def test_uninstrument(self):
69
self.assertEqual(span_list[0].attributes, expected_attrs)
70
71
FlaskInstrumentor().uninstrument()
72
+ self.app = flask.Flask(__name__)
73
+
74
+ def hello_endpoint(helloid):
75
+ if helloid == 500:
76
+ raise ValueError(":-(")
77
+ return "Hello: " + str(helloid)
78
79
+ self.app.route("/hello/<int:helloid>")(hello_endpoint)
80
81
+ self.client = Client(self.app, BaseResponse)
82
83
expected_attrs = expected_attributes(
84
{"http.target": "/hello/123", "http.route": "/hello/<int:helloid>"}
0 commit comments