emmett-sentry


Nameemmett-sentry JSON
Version 0.7.0 PyPI version JSON
download
home_pageNone
SummarySentry extension for Emmett framework
upload_time2024-10-13 21:36:45
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords emmett logging sentry
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Emmett-Sentry

Emmett-Sentry is an [Emmett framework](https://emmett.sh) extension integrating [Sentry](https://sentry.io) monitoring platform.

Emmett-Sentry is compatible both with Emmett and Emmett55.

## Installation

You can install Emmett-Sentry using pip:

    pip install emmett-sentry

And add it to your Emmett application:

```python
from emmett_sentry import Sentry

sentry = app.use_extension(Sentry)
```

## Configuration

Here is the complete list of parameters of the extension configuration:

| param | default | description |
| --- | --- | --- |
| dsn | | Sentry project's DSN |
| environment | development | Application environment |
| release | | Application release |
| auto\_load | `True` | Automatically inject extension on routes |
| sample\_rate | 1 | Error sampling rate |
| integrations | | List of integrations to pass to the SDK |
| enable\_tracing | `False` | Enable tracing on routes |
| tracing\_sample\_rate | | Traces sampling rate |
| tracing\_exclude\_routes | | List of specific routes to exclude from tracing | 
| trace\_websockets | `False` | Enable tracing on websocket routes |
| trace\_orm | `True` | Enable tracing on ORM queries |
| trace\_templates | `True` | Enable tracing on templates rendering |
| trace\_sessions | `True` | Enable tracing on sessions load/store |
| trace\_cache | `True` | Enable tracing on cache get/set |
| trace\_pipes | `False` | Enable tracing on pipes |
| sdk\_opts | `{}` | Additional configuration for the Sentry SDK |

## Usage

The extension exposes two methods to manually track events:

- exception
- message

You call these methods directly within your code:

```python
# track an error
try:
    1 / 0
except Exception:
    sentry.exception()

# track a message
sentry.message("some event", level="info")
```

## License

Emmett-Sentry is released under BSD license.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "emmett-sentry",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "emmett, logging, sentry",
    "author": null,
    "author_email": "Giovanni Barillari <g@baro.dev>",
    "download_url": "https://files.pythonhosted.org/packages/54/94/0e1009f028281b9575a9863159eff618f85f8db6b7a016ffc825c8d01c9f/emmett_sentry-0.7.0.tar.gz",
    "platform": null,
    "description": "# Emmett-Sentry\n\nEmmett-Sentry is an [Emmett framework](https://emmett.sh) extension integrating [Sentry](https://sentry.io) monitoring platform.\n\nEmmett-Sentry is compatible both with Emmett and Emmett55.\n\n## Installation\n\nYou can install Emmett-Sentry using pip:\n\n    pip install emmett-sentry\n\nAnd add it to your Emmett application:\n\n```python\nfrom emmett_sentry import Sentry\n\nsentry = app.use_extension(Sentry)\n```\n\n## Configuration\n\nHere is the complete list of parameters of the extension configuration:\n\n| param | default | description |\n| --- | --- | --- |\n| dsn | | Sentry project's DSN |\n| environment | development | Application environment |\n| release | | Application release |\n| auto\\_load | `True` | Automatically inject extension on routes |\n| sample\\_rate | 1 | Error sampling rate |\n| integrations | | List of integrations to pass to the SDK |\n| enable\\_tracing | `False` | Enable tracing on routes |\n| tracing\\_sample\\_rate | | Traces sampling rate |\n| tracing\\_exclude\\_routes | | List of specific routes to exclude from tracing | \n| trace\\_websockets | `False` | Enable tracing on websocket routes |\n| trace\\_orm | `True` | Enable tracing on ORM queries |\n| trace\\_templates | `True` | Enable tracing on templates rendering |\n| trace\\_sessions | `True` | Enable tracing on sessions load/store |\n| trace\\_cache | `True` | Enable tracing on cache get/set |\n| trace\\_pipes | `False` | Enable tracing on pipes |\n| sdk\\_opts | `{}` | Additional configuration for the Sentry SDK |\n\n## Usage\n\nThe extension exposes two methods to manually track events:\n\n- exception\n- message\n\nYou call these methods directly within your code:\n\n```python\n# track an error\ntry:\n    1 / 0\nexcept Exception:\n    sentry.exception()\n\n# track a message\nsentry.message(\"some event\", level=\"info\")\n```\n\n## License\n\nEmmett-Sentry is released under BSD license.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Sentry extension for Emmett framework",
    "version": "0.7.0",
    "project_urls": {
        "Funding": "https://github.com/sponsors/gi0baro",
        "Homepage": "https://github.com/emmett-framework/sentry",
        "Issues": "https://github.com/emmett-framework/sentry/issues",
        "Source": "https://github.com/emmett-framework/sentry"
    },
    "split_keywords": [
        "emmett",
        " logging",
        " sentry"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "71423aebb6f8091a13fe5e619397473ea912f94c8457736bf576d2cc5e79694f",
                "md5": "52b10038deac0dfd36ba42fce5957f18",
                "sha256": "959542f68b9815065555fd7bb6745c131d4e94f73725b0053bc857791e980823"
            },
            "downloads": -1,
            "filename": "emmett_sentry-0.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "52b10038deac0dfd36ba42fce5957f18",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 8609,
            "upload_time": "2024-10-13T21:36:43",
            "upload_time_iso_8601": "2024-10-13T21:36:43.805941Z",
            "url": "https://files.pythonhosted.org/packages/71/42/3aebb6f8091a13fe5e619397473ea912f94c8457736bf576d2cc5e79694f/emmett_sentry-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "54940e1009f028281b9575a9863159eff618f85f8db6b7a016ffc825c8d01c9f",
                "md5": "36a4e14e70461ed5e0eff9f0b3305c44",
                "sha256": "5f745935b14e2e7821c059d428724facea4b6634e0c8a98e51bf26e6d76f10a4"
            },
            "downloads": -1,
            "filename": "emmett_sentry-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "36a4e14e70461ed5e0eff9f0b3305c44",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 7259,
            "upload_time": "2024-10-13T21:36:45",
            "upload_time_iso_8601": "2024-10-13T21:36:45.057153Z",
            "url": "https://files.pythonhosted.org/packages/54/94/0e1009f028281b9575a9863159eff618f85f8db6b7a016ffc825c8d01c9f/emmett_sentry-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-13 21:36:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sponsors",
    "github_project": "gi0baro",
    "github_not_found": true,
    "lcname": "emmett-sentry"
}
        
Elapsed time: 0.58518s