Skip to content

Commit 2bf7d12

Browse files
toumorokoshiYusuke Tsutsumi
authored and
Yusuke Tsutsumi
committed
addressing feedback
1 parent ed628aa commit 2bf7d12

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

examples/trace/server.py

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
import json
18-
1917
import flask
2018
import requests
2119

opentelemetry-api/src/opentelemetry/trace/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"""
6363

6464
import enum
65-
import random
6665
import types as python_types
6766
import typing
6867
from contextlib import contextmanager

opentelemetry-api/tests/context/propagation/test_tracecontexthttptextformat.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ def test_invalid_trace_id(self):
9999
},
100100
)
101101
self.assertEqual(span_context, trace.INVALID_SPAN_CONTEXT)
102-
self.assertNotEqual(span_context.span_id, "1234567890123456")
103102

104103
def test_invalid_parent_id(self):
105104
"""If the parent id is invalid, we must ignore the full traceparent header.
@@ -171,8 +170,7 @@ def test_propagate_invalid_context(self):
171170
self.assertFalse("traceparent" in output)
172171

173172
def test_tracestate_empty_header(self):
174-
"""Do not propagate invalid trace context.
175-
"""
173+
"""Test tracestate with an additional empty header (should be ignored)"""
176174
span_context = FORMAT.extract(
177175
get_as_list,
178176
{

0 commit comments

Comments
 (0)