Skip to content

Commit

Permalink
update post-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Stella committed Oct 29, 2020
1 parent 02b92bd commit 36877b5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

from opentelemetry import propagators, trace
from opentelemetry.context import attach, detach
from opentelemetry.trace.status import Status, StatusCanonicalCode
from opentelemetry.trace.status import Status, StatusCode

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -115,7 +115,7 @@ def abort(self, code, details):
self.details = details
self._active_span.set_status(
Status(
canonical_code=StatusCanonicalCode(code.value[0]),
canonical_code=StatusCode(code.value[0]),
description=details,
)
)
Expand All @@ -130,7 +130,7 @@ def set_code(self, code):
details = self.details or code.value[1]
self._active_span.set_status(
Status(
canonical_code=StatusCanonicalCode(code.value[0]),
canonical_code=StatusCode(code.value[0]),
description=details,
)
)
Expand All @@ -140,7 +140,7 @@ def set_details(self, details):
self.details = details
self._active_span.set_status(
Status(
canonical_code=StatusCanonicalCode(self.code.value[0]),
canonical_code=StatusCode(self.code.value[0]),
description=details,
)
)
Expand Down

0 comments on commit 36877b5

Please sign in to comment.