Skip to content

Commit cdc0336

Browse files
author
Alex Boten
committed
couple more BoundedDict references
1 parent 30d755f commit cdc0336

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

Diff for: ext/opentelemetry-ext-flask/tests/test_flask_integration.py

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import opentelemetry.ext.flask as otel_flask
2222
from opentelemetry import trace as trace_api
2323
from opentelemetry.ext.testutil.wsgitestutil import WsgiTestBase
24-
from opentelemetry.sdk.trace import MAX_NUM_ATTRIBUTES
25-
from opentelemetry.sdk.util import BoundedDict
2624

2725

2826
class TestFlaskIntegration(WsgiTestBase):

Diff for: ext/opentelemetry-ext-wsgi/tests/test_wsgi_middleware.py

+12-17
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import opentelemetry.ext.wsgi as otel_wsgi
2222
from opentelemetry import trace as trace_api
2323
from opentelemetry.ext.testutil.wsgitestutil import WsgiTestBase
24-
from opentelemetry.sdk.trace import MAX_NUM_ATTRIBUTES
25-
from opentelemetry.sdk.util import BoundedDict
2624

2725

2826
class Response:
@@ -101,21 +99,18 @@ def validate_response(self, response, error=None):
10199
self.assertEqual(span_list[0].kind, trace_api.SpanKind.SERVER)
102100
self.assertEqual(
103101
span_list[0].attributes,
104-
BoundedDict.from_map(
105-
MAX_NUM_ATTRIBUTES,
106-
{
107-
"component": "http",
108-
"http.method": "GET",
109-
"http.server_name": "127.0.0.1",
110-
"http.scheme": "http",
111-
"host.port": 80,
112-
"http.host": "127.0.0.1",
113-
"http.flavor": "1.0",
114-
"http.url": "http://127.0.0.1/",
115-
"http.status_text": "OK",
116-
"http.status_code": 200,
117-
},
118-
),
102+
{
103+
"component": "http",
104+
"http.method": "GET",
105+
"http.server_name": "127.0.0.1",
106+
"http.scheme": "http",
107+
"host.port": 80,
108+
"http.host": "127.0.0.1",
109+
"http.flavor": "1.0",
110+
"http.url": "http://127.0.0.1/",
111+
"http.status_text": "OK",
112+
"http.status_code": 200,
113+
},
119114
)
120115

121116
def test_basic_wsgi_call(self):

0 commit comments

Comments
 (0)