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

Add integration for FastAPI, Starlette and ASGI & enhance async support #373

Merged
merged 174 commits into from
May 26, 2021

Commits on Apr 12, 2021

  1. Configuration menu
    Copy the full SHA
    c14e719 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f340e3b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5f55302 View commit details
    Browse the repository at this point in the history
  4. Format code

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    7331393 View commit details
    Browse the repository at this point in the history
  5. Add support for type hints if Starlette package installed

    This feature adds support for type hints in popular IDEs such as PyCharm or
    Visual Studio Code.
    
    The Python IDEs cannot infer type hinting for arbitrary dynamic code.
    So, annotations must be explicitly declared in the class body. To make
    Starlette installation optional, the class definition must be
    duplicated.
    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    3d5a700 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    50b1702 View commit details
    Browse the repository at this point in the history
  7. retrigger checks

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    63f7539 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    083a094 View commit details
    Browse the repository at this point in the history
  9. Make sure the type hints support is working for FastAPI

    Only tests as functionality is already coverd by ASGIMiddleware.
    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    1dc1bb9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6877682 View commit details
    Browse the repository at this point in the history
  11. Check if ASGI app is HTTP type

    Support http type for now due to Starlette limitation, see:
    https://github.com/encode/starlette/blob/master/starlette/applications.py#L192-L195
    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    7d58223 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    770bbf8 View commit details
    Browse the repository at this point in the history
  13. Refactor Python version checker

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    dc2cdc9 View commit details
    Browse the repository at this point in the history
  14. Add FastAPI version to payload

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    8a68f8b View commit details
    Browse the repository at this point in the history
  15. Refactor tests

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    d7cf2fd View commit details
    Browse the repository at this point in the history
  16. Add StarletteMiddleware

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    9aece56 View commit details
    Browse the repository at this point in the history
  17. Refactor tests. Make sure each test reloads hooks.

    Without reloading tests are not independent because
    rollbar.BASE_DATA_HOOK remains from previously loaded framework.
    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    4bd51c6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    7562df9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    34c7caa View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    7f8bb5d View commit details
    Browse the repository at this point in the history
  21. Remove obsolate docstring

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    2e77aba View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    db0dec8 View commit details
    Browse the repository at this point in the history
  23. Build request data for FastAPI

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    9354d46 View commit details
    Browse the repository at this point in the history
  24. Add Starlette user ip extractor

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    f548a26 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ac75dee View commit details
    Browse the repository at this point in the history
  26. Remove unused data from tests

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    0e492f9 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    161a573 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    d163644 View commit details
    Browse the repository at this point in the history
  29. Remove unused imports

    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    bd13b26 View commit details
    Browse the repository at this point in the history
  30. Use unique identifier name for ASGIApp type

    Due to collision with ASGIApp class decorator
    bxsx committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    ef0d597 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2021

  1. Add async handler based on HTTPX library

    Add to globals: httpx, AsyncHTTPClient (default async client)
    As for now AsyncClient -> httpx
    
    Supported connection options:
    - Proxy settings
    - Timeout
    - SSL
    bxsx committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    7a6040b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc307f4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7abec78 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2021

  1. Add consuming request body in Starlette middleware

    Due to bug in Starlette, consuming request body in middlewares can
    freeze application. This usually happen for FastAPI apps as the
    framework tries to consume the data itself.
    
    This commit adds consuming request body in Starlette middleware,
    however it's disabled by default (added as a comment).
    In case of uncommenting the body consumption, the payload builder
    verifies if body is available and append it to the payload.
    
    See: encode/starlette#495 (comment)
    bxsx committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    04566bc View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2021

  1. Configuration menu
    Copy the full SHA
    ca1e42a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3be7bdc View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2021

  1. Add support for type hints for all ASGI apps

    Add Starlette types to the codebase to get support whatever Starlette is
    installed or not.
    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    745359c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb6591f View commit details
    Browse the repository at this point in the history
  3. Add FastAPIVersionError exception

    This exception shall be raised when installed FastAPI version is not
    suffiecient.
    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    e82da48 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ecc3a9c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fb0e3c8 View commit details
    Browse the repository at this point in the history
  6. Reorganize FastAPI tests

    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    9ebbab2 View commit details
    Browse the repository at this point in the history
  7. Add add_to() that inject RollbarLoggingRoute as FastAPI route class

    RollbarLoggingRoute is an alternative to FastAPIMiddleware
    that provides more functionality (e.g. it can consume request body).
    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    bfe3a5a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    803a237 View commit details
    Browse the repository at this point in the history
  9. Refactor tests

    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    43a83de View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    014b54f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    788a52e View commit details
    Browse the repository at this point in the history
  12. Refactor tests

    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    995d64c View commit details
    Browse the repository at this point in the history
  13. Add test for multiple routers

    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    52637ff View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2b9047d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a491dd0 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    0be8c86 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    1eb411a View commit details
    Browse the repository at this point in the history
  18. Add get_installed_middlewares(app) to FastAPI utils

    This functions help to receive Rollbar middlewares that have been
    added to the app.
    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    31cc750 View commit details
    Browse the repository at this point in the history
  19. Refactor by extracting method

    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    6f8db54 View commit details
    Browse the repository at this point in the history
  20. Refactor FastAPI route handler

    - Make it strict to support FastAPI and APIRouter only
    - Use correct typing
    - Update error msgs
    - General clean up
    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    d2e9747 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9dfa7e8 View commit details
    Browse the repository at this point in the history
  22. Add path params to payload

    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    4fba2cd View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    f1bf6bc View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    4965ebd View commit details
    Browse the repository at this point in the history
  25. Add Starlette requests storage handler

    This module provides a global access to the request object available in the current
    context. It won't happen automatically. You need to call store_current_request() first
    for each connection.
    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    4ffc1f5 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    c544f0d View commit details
    Browse the repository at this point in the history
  27. Export get_current_request()

    Note: ASGI spec forbidden to edit the returned object. It's strictly
    read-only.
    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    d578579 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    6155d86 View commit details
    Browse the repository at this point in the history
  29. Reformat code

    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    5a46194 View commit details
    Browse the repository at this point in the history
  30. Include Starlette request object in get_return()

    Note1: The returned object cannot be modified due to ASGI spec
    Note2: _get_starlette_request must be run before _get_flask_request
    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    ab1012a View commit details
    Browse the repository at this point in the history
  31. Add FastAPI to get_request()

    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    4e6f855 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    bf6fe88 View commit details
    Browse the repository at this point in the history
  33. Extract Starlette test suite

    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    e6668ae View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    2f5aefc View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    675c3f8 View commit details
    Browse the repository at this point in the history
  36. Add Starlette LoggerMiddleware to store current request only

    This middleware is required to support `rollbar.logger`.
    It should be attached as the last middleware in the stack.
    bxsx committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    fa44af7 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    e02bd23 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2021

  1. Configuration menu
    Copy the full SHA
    474237c View commit details
    Browse the repository at this point in the history
  2. Refactor imports

    bxsx committed Apr 24, 2021
    Configuration menu
    Copy the full SHA
    f6276bc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0c59ade View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2021

  1. Change default handler to default.

    Fall back to 'thread' to keep backward compatibility.
    This change is required to introduce `async` handler with
    auto-switching.
    bxsx committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    a4e392a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c20c603 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d24f364 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bdd914b View commit details
    Browse the repository at this point in the history
  5. Update linting

    bxsx committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    8b299cb View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2021

  1. Add FastAPI util func has_bare_routing()

    This is a boolean function to verify if the app has not added any
    routing yet.
    bxsx committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    831995d View commit details
    Browse the repository at this point in the history
  2. Refactor: compose methods

    Use has_bare_routing() and private _add_to_app() and _add_to_router()
    funcs.
    bxsx committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    aa562f0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    396c28c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    78c821e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fe3d164 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fa576fe View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7b519fe View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dc3488f View commit details
    Browse the repository at this point in the history
  9. Rafactor tests

    bxsx committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    fb56d1b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3b28d58 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3559dde View commit details
    Browse the repository at this point in the history
  12. Add _async.call_later() to schedule coroutines

    Also make sure it's compatible across Python versions
    bxsx committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    2f819ed View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4af967f View commit details
    Browse the repository at this point in the history
  14. Lint code

    bxsx committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    9cd78fb View commit details
    Browse the repository at this point in the history
  15. Refactor global request provider

    bxsx committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    4b84489 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    85b56bc View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2021

  1. Fix _post_api_httpx

    bxsx committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    d73b3bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e40aa26 View commit details
    Browse the repository at this point in the history
  3. Fix tests warnings

    bxsx committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    e2b9470 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7247979 View commit details
    Browse the repository at this point in the history
  5. Remove unused code

    bxsx committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    f55a7bf View commit details
    Browse the repository at this point in the history
  6. Add AsyncIO classifier

    bxsx committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    b4ead20 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    868f806 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    db386e3 View commit details
    Browse the repository at this point in the history
  9. Refactor docstrings and comments

    bxsx committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    1a11c3f View commit details
    Browse the repository at this point in the history
  10. Clean up code

    bxsx committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    19906f8 View commit details
    Browse the repository at this point in the history
  11. Fix annotation

    bxsx committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    e561e22 View commit details
    Browse the repository at this point in the history
  12. Reorder tests

    bxsx committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    274976b View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2021

  1. Configuration menu
    Copy the full SHA
    a2170cf View commit details
    Browse the repository at this point in the history
  2. Clean unused imports

    bxsx committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    19195b3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    70031b8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cfdae6d View commit details
    Browse the repository at this point in the history
  5. Refactor ASGI integration

    - Add async reporter to the middleware
    - Add more tests
    - Fix FailingTestASGIApp helper
    - Update Starlette/FastAPI tests that depend on the helper
    bxsx committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    ceed956 View commit details
    Browse the repository at this point in the history
  6. Remove print from the test

    bxsx committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    569f450 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2021

  1. Clean up

    bxsx committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    25b9460 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e3325a6 View commit details
    Browse the repository at this point in the history
  3. Skip tests if missing packages

    bxsx committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    c2edf70 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    deafd8c View commit details
    Browse the repository at this point in the history
  5. Update jobs exclusion

    bxsx committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    b5ae265 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2021

  1. Exclude non-compatible tests from test loader

    Setuptools default test loader recursively loads all Python files before
    running tests. This results in SyntaxError due to incompatible keywords
    (e.g. async and await) under older Python versions. Skipping tests is
    not sufficient as Python2 and Python3.4- cannot compile the file with those keywords.
    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    3801abb View commit details
    Browse the repository at this point in the history
  2. Reformat code

    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    0d1e3d5 View commit details
    Browse the repository at this point in the history
  3. Move bare coroutine to rollbar.lib._async

    This helps to not break tests under incompatibile Python versions.
    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    1507489 View commit details
    Browse the repository at this point in the history
  4. Verify status code

    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    fa2cd51 View commit details
    Browse the repository at this point in the history
  5. Dynamically inject required annotations

    FastAPI relies on annotations that are not supported in Python older
    than 3.5+
    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    b4c6edb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e1725ac View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fe9ffbd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    07c7822 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b175005 View commit details
    Browse the repository at this point in the history
  10. Make HTTPX package optional

    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    1098b3c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    425798d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c2310a2 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7fb60fd View commit details
    Browse the repository at this point in the history
  14. Import correct middleware

    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    e97acac View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a103d91 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    b8b7580 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    95c50f1 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    f5406a8 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    4c06ea3 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    29e0a36 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    04efa7d View commit details
    Browse the repository at this point in the history
  22. Reformat code

    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    f6a204e View commit details
    Browse the repository at this point in the history
  23. Refactor code, fix comment

    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    800ebaa View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    4de7f00 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    71f3977 View commit details
    Browse the repository at this point in the history
  26. Do not pass Send message to Request

    For backward compatibility (send is not used anyway)
    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    a8e3757 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    ae0e46d View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    93a40e9 View commit details
    Browse the repository at this point in the history
  29. Reformat code

    bxsx committed May 4, 2021
    Configuration menu
    Copy the full SHA
    9fbad99 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    f194a88 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    4a00662 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2021

  1. Revert "Refactor code, fix comment"

    This reverts commit 800ebaa.
    bxsx committed May 5, 2021
    Configuration menu
    Copy the full SHA
    ecd3098 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e7edee0 View commit details
    Browse the repository at this point in the history
  3. Reformat code

    bxsx committed May 5, 2021
    Configuration menu
    Copy the full SHA
    7a18d20 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2021

  1. Configuration menu
    Copy the full SHA
    a1bdcd6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a14a74c View commit details
    Browse the repository at this point in the history
  3. Export the full API of Starlette and FastAPI regardless of current sy…

    …stem environment
    
    If some requirements are missing, we still notice via `log.error`.
    bxsx committed May 6, 2021
    Configuration menu
    Copy the full SHA
    fe2bde8 View commit details
    Browse the repository at this point in the history
  4. Raise the exception when incompatible middleware is trying to be used

    No need to raise exception while loading module
    bxsx committed May 6, 2021
    Configuration menu
    Copy the full SHA
    0cc3326 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2021

  1. Integrate only when the object has been initialized

    Previous integrations in the SDK were done by importing rollbar.contrib.'framework'.
    
    Since `rollbar._build_person_data()` needs to import Starlette integration,
    this sets the Starlette hook for the SDK even if not explicility integrated.
    
    Under certain cicrumstances, this can result in erroneously add Starlette
    framework information to the payload and associate occurence with Starlette
    integration.
    
    For now, integration with SDK is make only if integration function/class is called.
    
    Fix [ch85137]
    bxsx committed May 17, 2021
    Configuration menu
    Copy the full SHA
    f47ec5d View commit details
    Browse the repository at this point in the history
  2. Remove unused logger

    bxsx committed May 17, 2021
    Configuration menu
    Copy the full SHA
    ae2daea View commit details
    Browse the repository at this point in the history
  3. Refactor docs

    bxsx committed May 17, 2021
    Configuration menu
    Copy the full SHA
    6d87324 View commit details
    Browse the repository at this point in the history
  4. Remove unused test-function

    bxsx committed May 17, 2021
    Configuration menu
    Copy the full SHA
    c1bb16a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    535d6f5 View commit details
    Browse the repository at this point in the history
  6. Fix test for Python3.5

    assert_called_once() is added in Python3.6+
    bxsx committed May 17, 2021
    Configuration menu
    Copy the full SHA
    4cd225e View commit details
    Browse the repository at this point in the history

Commits on May 18, 2021

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

Commits on May 20, 2021

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

Commits on May 21, 2021

  1. Refactor test

    bxsx committed May 21, 2021
    Configuration menu
    Copy the full SHA
    86ebeb4 View commit details
    Browse the repository at this point in the history
  2. Use 'thread' instead of 'default' handler

    When providing non-async handler in tests.
    Default can be async sometimes, so better to test with thread.
    bxsx committed May 21, 2021
    Configuration menu
    Copy the full SHA
    bc85fec View commit details
    Browse the repository at this point in the history
  3. Add comment to workaround Python2 SyntaxError

    Commented out code is the proper scenario but cannot be used as the test
    file is run under Python2
    bxsx committed May 21, 2021
    Configuration menu
    Copy the full SHA
    1f66fd9 View commit details
    Browse the repository at this point in the history
  4. Use local context when using async_handler ctx manager

    When reporting via concurrent coroutines, the async_handler ctx manager
    stores a locally substituted async handler. This allows each coroutine
    to use different handler.
    
    This solution is based on `contextvars` module that was added in
    Python 3.7+. In case of Python 3.6, it tries to backport the module
    using `aiocontextvars` 3rd party package.
    bxsx committed May 21, 2021
    Configuration menu
    Copy the full SHA
    35da296 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2021

  1. Configuration menu
    Copy the full SHA
    140e3ee View commit details
    Browse the repository at this point in the history
  2. Unlock LoggerMiddleware for Python 3.6

    This feature requires `aiocontextvars` package to be installed when
    running on Python 3.6. Newer Python versions don't require the package.
    bxsx committed May 22, 2021
    Configuration menu
    Copy the full SHA
    d6eb992 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9955666 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2021

  1. Rename async_handler ctx manager to AsyncHandler

    Since it actually produce resources it's better to keep class naming
    convention here
    bxsx committed May 25, 2021
    Configuration menu
    Copy the full SHA
    72f306b View commit details
    Browse the repository at this point in the history