{ "info": { "author": "OpenCensus Authors", "author_email": "census-developers@googlegroups.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "OpenCensus logging Integration\n============================================================================\n\n|pypi|\n\n.. |pypi| image:: https://badge.fury.io/py/opencensus-ext-logging.svg\n :target: https://pypi.org/project/opencensus-ext-logging/\n\nThe logging integration enriches the log records with trace ID, span ID and sampling flag.\nThe following attributes will be added to ``LogRecord``:\n\n * traceId\n * spanId\n * traceSampled\n\nNote that this only takes effect for loggers created after the integration.\n\nInstallation\n------------\n\n::\n\n pip install opencensus-ext-logging\n\nUsage\n-----\n\n.. code:: python\n\n import logging\n\n from opencensus.trace import config_integration\n from opencensus.trace.samplers import AlwaysOnSampler\n from opencensus.trace.tracer import Tracer\n\n config_integration.trace_integrations(['logging'])\n logging.basicConfig(format='%(asctime)s traceId=%(traceId)s spanId=%(spanId)s %(message)s')\n tracer = Tracer(sampler=AlwaysOnSampler())\n\n logger = logging.getLogger(__name__)\n logger.warning('Before the span')\n with tracer.span(name='hello'):\n logger.warning('In the span')\n logger.warning('After the span')\n\n\nReferences\n----------\n\n* `OpenCensus Project `_\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-logging", "keywords": "", "license": "Apache-2.0", "maintainer": "", "maintainer_email": "", "name": "opencensus-ext-logging", "package_url": "https://pypi.org/project/opencensus-ext-logging/", "platform": "", "project_url": "https://pypi.org/project/opencensus-ext-logging/", "project_urls": { "Homepage": "https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-logging" }, "release_url": "https://pypi.org/project/opencensus-ext-logging/0.1.0/", "requires_dist": [ "opencensus (<1.0.0,>=0.6.0)" ], "requires_python": "", "summary": "OpenCensus logging Integration", "version": "0.1.0" }, "last_serial": 5640767, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6933265209399f5cf41f2f97ebff88c6", "sha256": "647b7cc0ea9ba56486281234cca299814a1f0e3fe5b541a60e646991cfebd00f" }, "downloads": -1, "filename": "opencensus_ext_logging-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6933265209399f5cf41f2f97ebff88c6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3899, "upload_time": "2019-06-01T04:21:56", "url": "https://files.pythonhosted.org/packages/55/bf/4f223f3b73b389e113ab8e2baadabdaa5db34fe8642ade74eb1037f47780/opencensus_ext_logging-0.1.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6933265209399f5cf41f2f97ebff88c6", "sha256": "647b7cc0ea9ba56486281234cca299814a1f0e3fe5b541a60e646991cfebd00f" }, "downloads": -1, "filename": "opencensus_ext_logging-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6933265209399f5cf41f2f97ebff88c6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3899, "upload_time": "2019-06-01T04:21:56", "url": "https://files.pythonhosted.org/packages/55/bf/4f223f3b73b389e113ab8e2baadabdaa5db34fe8642ade74eb1037f47780/opencensus_ext_logging-0.1.0-py2.py3-none-any.whl" } ] }