Skip to main content

Integrate timelines with OOPS error reports.

Project description

Copyright (c) 2010, 2011, Canonical Ltd

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3 only.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

The oops_timeline package provides integration glue between timeline objects (http://pypi.python.org/pypi/timeline) and the oops error reporting system (http://pypi.python.org/pypi/oops).

Dependencies

Testing Dependencies

Usage

oops_timeline provides an oops on_create hook to extract timeline data from oops_context[‘timeline’] and inject it into the oops report as primitive data.

  • Setup your configuration:

    >>> from oops import Config
    >>> config = Config()

Note that you will probably want at least one publisher, or your reports will be discarded.

  • Add in the timeline hook to the config:

    >>> oops_timeline.install_hooks(config)

This is a convenience function in case additional hooks are needed in future.

For more information see pydoc oops_timeline.

Installation

python-oops-timeline can be installed into an existing Python environment in the usual way using pip, or it can be installed as a standalone package. To install it as a standalone package, run make to create a suitable virtual environment.

Development

Upstream development takes place at https://launchpad.net/python-oops-timeline. To setup a working area for development, if the dependencies are not immediately available, you can use make to create a virtual environment, then env/bin/python3 to get a python interpreter with the dependencies available.

To run the tests use tox.

For instance:

$ tox

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oops_timeline-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oops_timeline-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file oops_timeline-0.1.0.tar.gz.

File metadata

  • Download URL: oops_timeline-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for oops_timeline-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ddf76d9341a8209962756d70b4f4a9ba7f31162e19c3f80310c99b61e0e5302e
MD5 df15da499312a54fd311998a19d0ef10
BLAKE2b-256 c411dba3dffa2da1d3dc14c717054cf1dc09140d9bc391f86a7c22de5f8a00f4

See more details on using hashes here.

File details

Details for the file oops_timeline-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: oops_timeline-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for oops_timeline-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9919bf2196389ffadd81d07fc5815845d80c13f6c5904a7a91bbdfd7ec3d6d22
MD5 17863adf887a9e05baa5362127a7bffb
BLAKE2b-256 039ecb89082bfd1dcc5bdcf867e50433c84056426fb29744c43b83feb6913df8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page