Skip to content

Span.is_recording() now based off self._end_time and returns False if…#1289

Merged
lzchen merged 3 commits intoopen-telemetry:masterfrom
robwknox:1243_isrecording_becomes_false_after_end_v2
Oct 29, 2020
Merged

Span.is_recording() now based off self._end_time and returns False if…#1289
lzchen merged 3 commits intoopen-telemetry:masterfrom
robwknox:1243_isrecording_becomes_false_after_end_v2

Conversation

@robwknox
Copy link
Copy Markdown
Contributor

@robwknox robwknox commented Oct 27, 2020

… span has ended

Description

Span.is_recording() is now based off self._end_time and returns False if a span has ended.

Fixes (#1243)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

tox full run against pyenvs:

  • 3.5.10
  • 3.6.12
  • 3.7.9
  • 3.8.6
  • 3.9.0
  • pypy3.6-7.3.1

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@robwknox robwknox requested review from a team, hectorhdzg and owais and removed request for a team October 27, 2020 17:12
Copy link
Copy Markdown
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this change, I agree that this is a much simpler implementation 👍

@lzchen lzchen merged commit bcc53c8 into open-telemetry:master Oct 29, 2020
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this pull request Nov 1, 2020
Co-authored-by: Mayur Kale <mayurkale@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants