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

(1) Add new scopes related API (but not yet calling it) #2609

Closed
wants to merge 97 commits into from

Commits on Dec 11, 2023

  1. (1) Move add_breadcrumb and session function from Hub to Scope (#2578)

    Moved some functionality from Hub to Scope or Client:
    - moved `add_breadcrumb` from Hub to Scope
    - moved session functions from Hub to Scope
    - moved `get_integration1` from Hub to Client.
    
    This is preparation work for refactoring how we deal with Hubs and Scopes in the future.
    Each commit is moving one function, so it should be easy to review commit by commit.
    antonpirker committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    9487038 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a17cb67 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2023

  1. Configuration menu
    Copy the full SHA
    b4183bd View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. (5) Add reset() to thread local ContextVar and no-op `copy_context(…

    …)` (#2570)
    
    Improves the capabilities of our threadlocal context variables, we use when no "real" context variables are available (for example in old Python versions)
    
    - Adds a no-op [copy_context](https://docs.python.org/3/library/contextvars.html#contextvars.copy_context) function to use in environments without context vars
    - Adds [reset](https://docs.python.org/3/library/contextvars.html#contextvars.ContextVar.reset) functionality to our threadlocal based context vars.
    
    This is preparation work for refactoring how we deal with Hubs and Scopes in the future.
    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    eff8f78 View commit details
    Browse the repository at this point in the history
  2. (2) Move capture_* from Hub to Client (#2555)

    Moved some functionality from Hub to Client:
    
    - Capture Event:
      - moved `capture_event` from Hub to Client
      - created new `capture_event` in Scope that calls `capture_event` in Client
      - made `capture_event` in Hub call the new `capture_event` in Scope
    
    - Capture Exception:
      - created new `capture_exception` in Scope
      - made `capture_exception` in Hub call the new one in Scope
    
    - Capture Message:
      - created new `capture_message` in Scope
      - made `capture_message` in Hub call the new one in Scope
    
    - renamed `**scope_args` to `**scope_kwargs` because it contains keyword arguments.
    - moved `_update_scope` from Hub to Scope and renamed it to `_merge_scopes` 
    
    This is preparation work for refactoring how we deal with Hubs and Scopes in the future.
    Its properly easier to reason about this change when checking out the branch than looking at the diff.
    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    79e15f5 View commit details
    Browse the repository at this point in the history
  3. (3) Move tracing related functions from Hub to Scope (#2558)

    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.
    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    5f332e3 View commit details
    Browse the repository at this point in the history
  4. Added new API

    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    eee394d View commit details
    Browse the repository at this point in the history
  5. formatting

    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    5816b54 View commit details
    Browse the repository at this point in the history
  6. formatting

    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    7a440fe View commit details
    Browse the repository at this point in the history
  7. formatting

    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    0a40f62 View commit details
    Browse the repository at this point in the history
  8. Removed duplicated import

    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    ea8f139 View commit details
    Browse the repository at this point in the history
  9. formatting

    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    d9c88e7 View commit details
    Browse the repository at this point in the history
  10. formatting

    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    67eea1e View commit details
    Browse the repository at this point in the history
  11. formatting

    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    76d352e View commit details
    Browse the repository at this point in the history
  12. formatting

    antonpirker committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    0feab1a View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. Configuration menu
    Copy the full SHA
    db610a8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cabf8d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7cc1f86 View commit details
    Browse the repository at this point in the history
  4. trigger ci

    antonpirker committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    cce06c7 View commit details
    Browse the repository at this point in the history
  5. trigger ci

    antonpirker committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    1f06fbb View commit details
    Browse the repository at this point in the history
  6. Merge branch 'new-scopes-add-api' of github.com:getsentry/sentry-pyth…

    …on into new-scopes-add-api
    antonpirker committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    692a2dc View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Fixed import

    antonpirker committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    9d2a7b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5b8522 View commit details
    Browse the repository at this point in the history
  3. Renamed api

    antonpirker committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    1b17770 View commit details
    Browse the repository at this point in the history
  4. Renamed scope vars

    antonpirker committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    e034aa9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ba74c1e View commit details
    Browse the repository at this point in the history
  6. now for real

    antonpirker committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    6a6bcf7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    94ef082 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Configuration menu
    Copy the full SHA
    a213490 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Removed private methods from NoopClient because they should never be …

    …called from outside so they are not needed
    antonpirker committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    d2fb4b5 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. Configuration menu
    Copy the full SHA
    62889d5 View commit details
    Browse the repository at this point in the history
  2. Cleanup

    antonpirker committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    f51c691 View commit details
    Browse the repository at this point in the history
  3. Improved scope api

    antonpirker committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    3eb2243 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    553cbbc View commit details
    Browse the repository at this point in the history
  5. docs

    antonpirker committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    b63483c View commit details
    Browse the repository at this point in the history
  6. Added some tests

    antonpirker committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    af54208 View commit details
    Browse the repository at this point in the history
  7. Added tests

    antonpirker committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    7366818 View commit details
    Browse the repository at this point in the history
  8. Apply suggestions from code review

    Co-authored-by: Ivana Kellyerova <ivana.kellyerova@sentry.io>
    antonpirker and sentrivana committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    9ad022b View commit details
    Browse the repository at this point in the history
  9. Fixing stuff

    antonpirker committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    699ef78 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    55a9f4f View commit details
    Browse the repository at this point in the history
  11. Removed useless code

    antonpirker committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    09737e1 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2024

  1. Configuration menu
    Copy the full SHA
    0c47518 View commit details
    Browse the repository at this point in the history
  2. Fixed import

    antonpirker committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    01b663a View commit details
    Browse the repository at this point in the history
  3. Added more tests

    antonpirker committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    50afa9d View commit details
    Browse the repository at this point in the history
  4. Sorted __all__

    antonpirker committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    c16be2b View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2024

  1. Configuration menu
    Copy the full SHA
    9115743 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    70b3d99 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8eeeed3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9952097 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a8f98b2 View commit details
    Browse the repository at this point in the history
  6. Fixed docstring

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    059f051 View commit details
    Browse the repository at this point in the history
  7. Fixed docstring

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    b027411 View commit details
    Browse the repository at this point in the history
  8. Fixed imports

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    8c4fddc View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4d884e9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1c1b911 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    abd7c37 View commit details
    Browse the repository at this point in the history
  12. enable one test

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    3420b24 View commit details
    Browse the repository at this point in the history
  13. Enabled more tests

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    668a7a4 View commit details
    Browse the repository at this point in the history
  14. Another two tests

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    95302bd View commit details
    Browse the repository at this point in the history
  15. one gone again

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    c54ca92 View commit details
    Browse the repository at this point in the history
  16. and testing the other one

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    efffd01 View commit details
    Browse the repository at this point in the history
  17. Check first test

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    81eea9a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e957fdb View commit details
    Browse the repository at this point in the history
  19. this is weird

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    f2ee7c4 View commit details
    Browse the repository at this point in the history
  20. one more test

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    8ed4e34 View commit details
    Browse the repository at this point in the history
  21. forking more test

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    e73d85c View commit details
    Browse the repository at this point in the history
  22. more forking

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    1c96e1f View commit details
    Browse the repository at this point in the history
  23. Cleanup

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    753620a View commit details
    Browse the repository at this point in the history
  24. Made ScopeType an enum

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    0172098 View commit details
    Browse the repository at this point in the history
  25. Improved test asserts

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    f82bb36 View commit details
    Browse the repository at this point in the history
  26. Fixed typing

    antonpirker committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    387f433 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Configuration menu
    Copy the full SHA
    4d747d6 View commit details
    Browse the repository at this point in the history
  2. linting

    antonpirker committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    cb27c4c View commit details
    Browse the repository at this point in the history
  3. reformat

    antonpirker committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    9ae58ee View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7a22de1 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. Update test matrix

    antonpirker committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    fca14a3 View commit details
    Browse the repository at this point in the history
  2. updated apidocs

    antonpirker committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    041e004 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Cleanup

    antonpirker committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    689ad15 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. Configuration menu
    Copy the full SHA
    47c973e View commit details
    Browse the repository at this point in the history
  2. formatting

    antonpirker committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    d3917e0 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2024

  1. Configuration menu
    Copy the full SHA
    7189e5e View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. Update sentry_sdk/scope.py

    Co-authored-by: Daniel Szoke <szokeasaurusrex@users.noreply.github.com>
    antonpirker and szokeasaurusrex committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    f6cb4ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72365d4 View commit details
    Browse the repository at this point in the history
  3. Added some comments

    antonpirker committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    ae39a43 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f908fe8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9247623 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6be5e5f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3b3537f View commit details
    Browse the repository at this point in the history
  8. Fixed default value

    antonpirker committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    27522d0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a821b93 View commit details
    Browse the repository at this point in the history
  10. Make it run in old python

    antonpirker committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    fcb3f68 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    161a1ac View commit details
    Browse the repository at this point in the history
  12. Make api consistent

    antonpirker committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    b7c0db5 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    56b266b View commit details
    Browse the repository at this point in the history
  14. Apply suggestions from code review

    Co-authored-by: Ivana Kellyerova <ivana.kellyerova@sentry.io>
    Co-authored-by: Daniel Szoke <szokeasaurusrex@users.noreply.github.com>
    3 people committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    f7f8d42 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Configuration menu
    Copy the full SHA
    b57cde6 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'new-scopes-add-api' of github.com:getsentry/sentry-pyth…

    …on into new-scopes-add-api
    antonpirker committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    90d8d20 View commit details
    Browse the repository at this point in the history