Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move usespan out of tracer #1668

Merged
merged 2 commits into from
Mar 8, 2021

Conversation

owais
Copy link
Contributor

@owais owais commented Mar 3, 2021

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #1630

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Updated/Added tests

Does This PR Require a Contrib Repo Change?

Answer the following question based on these examples of changes that would require a Contrib Repo Change:

  • The OTel specification has changed which prompted this PR to update the method interfaces of opentelemetry-api/ or opentelemetry-sdk/

Result of: #1630

Checklist:

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

@owais owais force-pushed the move-usespan-out-of-tracer branch 3 times, most recently from 9edc084 to ee1d970 Compare March 4, 2021 12:48
@owais owais changed the title Move usespan out of tracer WIP: Move usespan out of tracer Mar 4, 2021
@owais owais force-pushed the move-usespan-out-of-tracer branch from ee1d970 to f921966 Compare March 4, 2021 12:49
@owais owais marked this pull request as ready for review March 4, 2021 12:50
@owais owais requested review from a team, aabmass and ocelotl and removed request for a team March 4, 2021 12:50
@owais owais force-pushed the move-usespan-out-of-tracer branch from f921966 to 510dbd2 Compare March 4, 2021 12:54
@owais owais force-pushed the move-usespan-out-of-tracer branch 7 times, most recently from 43d9d85 to 61f067a Compare March 4, 2021 17:00
@owais owais changed the title WIP: Move usespan out of tracer Move usespan out of tracer Mar 4, 2021
@@ -13,7 +13,7 @@
# limitations under the License.
from typing import Optional

from opentelemetry.context import get_value, set_value
from opentelemetry.context import attach, get_value, set_value
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this for?

Copy link
Contributor Author

@owais owais Mar 5, 2021

Choose a reason for hiding this comment

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

I think it got added as I first thought of placing the function here but also exporting it from trace module. Not sure why pylint/isort didn't catch this as an unused import. 🤔

Fixed now.

@owais owais force-pushed the move-usespan-out-of-tracer branch from 61f067a to 6983d75 Compare March 5, 2021 00:58
@owais owais force-pushed the move-usespan-out-of-tracer branch from 8e1fd87 to 64b1384 Compare March 6, 2021 00:03
@owais owais force-pushed the move-usespan-out-of-tracer branch from 64b1384 to 5546950 Compare March 6, 2021 00:34
@codeboten codeboten merged commit 9254c17 into open-telemetry:main Mar 8, 2021
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.

Move useSpan() out of Tracer
4 participants