FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

(3) Move tracing related functions from Hub to Scope by antonpirker · Pull Request #2558 · getsentry/sentry-python · GitHub

(3) Move tracing related functions from Hub to Scope - #2558

Merged
antonpirker merged 44 commits into
feat/new-scopesfrom
antonpirker/refactor-hub-tracing
Dec 19, 2023
Merged

(3) Move tracing related functions from Hub to Scope#2558
antonpirker merged 44 commits into
feat/new-scopesfrom
antonpirker/refactor-hub-tracing

Conversation

Copy link
Copy Markdown
Contributor

Moved some functionality from Hub to Client:

  • sorted some typing imports
  • moved get_traceparent from Hub to Scope
  • moved get_baggage from Hub to Scope
  • moved iter_trace_propagation_headers from Hub to Scope
  • moved trace_propagation_meta from Hub to Scope

This is preparation work for refactoring how we deal with Hubs and Scopes in the future.

Depends on: #2555 (please review the linked one first)

antonpirker changed the base branch from master to antonpirker/refactor-hub-capture December 1, 2023 12:46
antonpirker changed the title Move tracing related functions from Hub to Scope (3) Move tracing related functions from Hub to Scope Dec 4, 2023
antonpirker marked this pull request as ready for review December 5, 2023 09:26

sentrivana left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good to me. This stuff also fits better on the scope conceptually.

Comment thread sentry_sdk/scope.py Outdated

sl0thentr0py left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

this one is good because this stuff conceptually now belongs together with propagation context 👍

Moved some functionality from Hub to Client:

- moved `start_transaction` from Hub to Scope
- moved `start_span` from Hub to Scope
- moved `continue_trace` from Hub to Scope

This is preparation work for refactoring how we deal with Hubs and Scopes in the future.

Depends on: #2558 (please review the linked one first)
Base automatically changed from antonpirker/refactor-hub-capture to feat/new-scopes December 19, 2023 11:20
antonpirker merged commit 5f332e3 into feat/new-scopes Dec 19, 2023
antonpirker deleted the antonpirker/refactor-hub-tracing branch December 19, 2023 11:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL