Skip to content

Commit

Permalink
Span.is_recording() now based off self._end_time and returns False if… (
Browse files Browse the repository at this point in the history
  • Loading branch information
robwknox authored Oct 29, 2020
1 parent f3cdfa2 commit bcc53c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion opentelemetry-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
([#998](https://github.com/open-telemetry/opentelemetry-python/pull/998))
- Samplers to accept parent Context
([#1267](https://github.com/open-telemetry/opentelemetry-python/pull/1267))
- Updating status codes to adhere to spec ([#1282](https://github.com/open-telemetry/opentelemetry-python/pull/1282))
- Updating status codes to adhere to spec
([#1282](https://github.com/open-telemetry/opentelemetry-python/pull/1282))
- Span.is_recording() returns false after span has ended
([#1289](https://github.com/open-telemetry/opentelemetry-python/pull/1289))

## Version 0.14b0

Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ def update_name(self, name: str) -> None:
self.name = name

def is_recording(self) -> bool:
return True
return self._end_time is None

@_check_span_ended
def set_status(self, status: trace_api.Status) -> None:
Expand Down

0 comments on commit bcc53c8

Please sign in to comment.