Skip to content

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

Merged
eladkal merged 1 commit intov3-0-testfrom
backport-c6693cb-v3-0-test
Jun 25, 2025
Merged

[v3-0-test] fix mypy errors in otel_tracer (#52170)#52175
eladkal merged 1 commit intov3-0-testfrom
backport-c6693cb-v3-0-test

Conversation

@github-actions
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 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.

3 participants