Metadata-Version: 2.1
Name: odoo-elasticapm
Version: 0.0.1
Summary: Elastic APM integration for Odoo
Home-page: http://github.com/akretion/odoo-elasticapm
Author: Akretion
Author-email: contact@akretion.com
License: AGPLv3+
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Framework :: Odoo
Requires-Dist: elastic-apm (>=5.4)

odoo-elasticapm
=================

.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. image:: https://badge.fury.io/py/odoo-elasticapm.svg
    :target: http://badge.fury.io/py/odoo-elasticapm

odoo-elasticapm integrate the APM tracking from the ELK suite

.. contents::

Quick start
~~~~~~~~~~~

Install ``odoo-elasticapm``::

  pip install odoo-elasticapm


Then instead of launching odoo with ``odoo`` cmd use ``odoo-elasticapm``::

  odoo-elasticapm


Configuration

Following environment variable are needed:

ELASTIC_APM_SERVER_URL=http://apm-server:8200


The following one are optionnal:

ELASTIC_APM_SERVICE_NAME=my-customer
ELASTIC_APM_TRANSACTION_SAMPLE_RATE=0.1

All environment variable are available on official documentation:
https://www.elastic.co/guide/en/apm/agent/python/current/configuration.html


Issue
~~~~~~~
We still have issue on travis regarding verison 12 and 13 (I fail to reproduce them locally)
If you want to use it on this version be carefull.
Contibution and help is welcome

Changes
~~~~~~~

.. Future (?)
.. ----------
.. - ...


0.0.1
--------

- add transaction capture for http request
- add transaction capture for cron
- add exception capture for http request
- add exception capture for cron
- add special span for ORM method (search, create, write, unlink)


