Skip to content

[v3-0-test] fix mypy errors in otel_tracer (#52170) #52175

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

github-actions[bot]
Copy link

(cherry picked from commit c6693cb)

Co-authored-by: Christos Bisias [email protected]

(cherry picked from commit c6693cb)

Co-authored-by: Christos Bisias <[email protected]>
@eladkal eladkal marked this pull request as ready for review June 25, 2025 04:09
@shahar1 shahar1 requested a review from Copilot June 25, 2025 13:10
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes mypy errors in the otel_tracer module by updating function return types and the corresponding implementation.

  • Added an import for AbstractContextManager to support the new return type.
  • Updated the _new_span function signature and its implementation to return either a context manager or a span object.

@eladkal eladkal merged commit 2c68949 into v3-0-test Jun 25, 2025
47 checks passed
@eladkal eladkal deleted the backport-c6693cb-v3-0-test branch June 25, 2025 16:47
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.

2 participants