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 timneline 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

Either run setup.py in an environment with all the dependencies available, or add the working directory to your PYTHONPATH.

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 ./bootstrap.py to create bin/buildout, then bin/py to get a python interpreter with the dependencies available.

To run the tests use the runner of your choice, the test suite is oops.tests.test_suite.

For instance:

$ bin/py -m testtools.run oops_timeline.tests.test_suite

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.0.3.tar.gz (3.0 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for oops_timeline-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fd8a81fe5582c5b9374750cde7d5ea6d74261b2f87c1cf4bf74fa9603e5f8c02
MD5 b2cd315208d00b666bec694e87c8cd78
BLAKE2b-256 f489959bddbe257a6a5fad3f698e535f13bb64f3a35606f50cebbadaca04bf65

See more details on using hashes here.

Supported by

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