Skip to content

Commit

Permalink
Reordered tuple fields
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonXZLiu committed Sep 17, 2020
1 parent e6de321 commit 053b2b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions opentelemetry-api/src/opentelemetry/trace/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ def __new__(
trace_flags = DEFAULT_TRACE_OPTIONS
if trace_state is None:
trace_state = DEFAULT_TRACE_STATE

is_valid = trace_id != INVALID_TRACE_ID and span_id != INVALID_SPAN_ID

return tuple.__new__(
cls,
(trace_id, span_id, trace_flags, trace_state, is_remote, is_valid),
)
(trace_id, span_id, is_remote, trace_flags, trace_state, is_valid),
)

@property
def trace_id(self) -> int:
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-api/tests/trace/test_immutablespancontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import unittest

from opentelemetry import trace
from opentelemetry.trace import TraceFlags, TraceState
from opentelemetry.trace import TraceFlags, TraceState


class TestImmutableSpanContext(unittest.TestCase):
Expand Down

0 comments on commit 053b2b1

Please sign in to comment.