Skip to content

Commit

Permalink
Updated code with black
Browse files Browse the repository at this point in the history
  • Loading branch information
bitnahian committed Apr 25, 2023
1 parent 4fe0f2b commit 0fa941e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def test_trace_context_injection(self):
span_id = format(span.get_span_context().span_id, "016x")
trace_id = format(span.get_span_context().trace_id, "032x")
trace_sampled = span.get_span_context().trace_flags.sampled
self.assert_trace_context_injected(span_id, trace_id, trace_sampled)
self.assert_trace_context_injected(
span_id, trace_id, trace_sampled
)

def test_trace_context_injection_without_span(self):
self.assert_trace_context_injected("0", "0", False)
Expand Down Expand Up @@ -185,7 +187,9 @@ def test_uninstrumented(self):
span_id = format(span.get_span_context().span_id, "016x")
trace_id = format(span.get_span_context().trace_id, "032x")
trace_sampled = span.get_span_context().trace_flags.sampled
self.assert_trace_context_injected(span_id, trace_id, trace_sampled)
self.assert_trace_context_injected(
span_id, trace_id, trace_sampled
)

LoggingInstrumentor().uninstrument()

Expand Down

0 comments on commit 0fa941e

Please sign in to comment.