{ "info": { "author": "Carlos Alberto Cortez", "author_email": "calberto.cortez@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "\n.. image:: https://travis-ci.org/opentracing-contrib/python-redis.svg?branch=master\n :target: http://travis-ci.org/opentracing-contrib/python-redis\n :alt: Build Status\n\n#################\nRedis Opentracing\n#################\n\nThis package enables distributed tracing for the Python redis library.\n\n**Note**: If you need to use the old OpenTracing 1.0 API, use the 0.x releases.\n\nInstallation\n============\n\nRun the following command:\n\n $ pip install redis_opentracing\n\nGetting started\n===============\n\nTracing a Redis client requires setting up an OpenTracing-compatible tracer, and calling ``init_tracing()`` to set up the tracing wrappers. See the examples directory for several different approaches.\n\n.. code-block:: python\n\n import redis\n import redis_opentracing\n\n redis_opentracing.init_tracing(tracer)\n\n client = redis.StrictRedis()\n client.set('last_access', datetime.datetime.now())\n\nIt's possible to trace only specific Redis clients:\n\n.. code-block:: python\n\n redis_opentracing.init_tracing(tracer, trace_all_classes=False)\n redis_opentracing.trace_client(client)\n\n # Only commands and pipelines executed through this client will\n # be traced.\n res = client.get('last_access')\n\nIt's also possible to trace only specific pipelines:\n\n.. code-block:: python\n\n redis_opentracing.init_tracing(tracer, trace_all_classes=False)\n\n pipe = client.pipeline()\n redis_opentracing.trace_pipeline(pipe)\n\n # This pipeline will be executed as a single MULTI command.\n pipe.lpush('fruits', 'lemon', 'watermelon')\n pipe.rpush('fruits', 'pineapple', 'apple')\n pipe.execute()\n\nWhen pipeline commands are executed as a transaction, these commands will be grouped under a single ``MULTI`` operation. They'll also appear as a single operation in the trace. Outside of a transaction, each command will generate a span.\n\nAnd it's also possible to trace only specific pubsub objects:\n\n.. code-block:: python\n\n redis_opentracing.init_tracing(tracer, trace_all_classes=False)\n\n pubsub = client.pubsub()\n redis_opentracing.trace_pubsub(pubsub)\n\n pubsub.subscribe('incoming-fruits')\n msg = pubsub.get_message() # This message will appear as a 'SUB' operation.\n\nIncoming messages through ``get_message()``, ``listen()`` and ``run_in_thread()`` will be traced, and any command executed through the pubsub's ``execute_command()`` method will be traced too.\n\nFurther information\n===================\n\nIf you\u2019re interested in learning more about the OpenTracing standard, please visit `opentracing.io`_ or `join the mailing list`_. If you would like to implement OpenTracing in your project and need help, feel free to send us a note at `community@opentracing.io`_.\n\n.. _opentracing.io: http://opentracing.io/\n.. _join the mailing list: http://opentracing.us13.list-manage.com/subscribe?u=180afe03860541dae59e84153&id=19117aa6cd\n.. _community@opentracing.io: community@opentracing.io\n\nLicense\n=======\n`Apache 2.0 License `_\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/opentracing-contrib/python-redis/tarball/1.0.0\n", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/opentracing-contrib/python-redis/", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "redis-opentracing", "package_url": "https://pypi.org/project/redis-opentracing/", "platform": "any", "project_url": "https://pypi.org/project/redis-opentracing/", "project_urls": { "Download": "https://github.com/opentracing-contrib/python-redis/tarball/1.0.0\n", "Homepage": "https://github.com/opentracing-contrib/python-redis/" }, "release_url": "https://pypi.org/project/redis-opentracing/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "OpenTracing support for Elasticsearch", "version": "1.0.0" }, "last_serial": 4588797, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d7a4798afa5009aee5dd3377d683b6b8", "sha256": "03fef8c56460b6eb9f7a16369e9bc2598bd750f4e9c5866eb91bf74ef1a4f1b2" }, "downloads": -1, "filename": "redis_opentracing-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d7a4798afa5009aee5dd3377d683b6b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3901, "upload_time": "2017-06-24T16:50:32", "url": "https://files.pythonhosted.org/packages/e2/69/7519ff18c7444a96f5580e1594597ba53b8798e26b37aba5199970dff1c6/redis_opentracing-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7a65d0ea51541e74a1201b4bd3960e54", "sha256": "29cb08210d47af9dc1db590d67b120fee8f2982ce5312830721ccc1ac885b693" }, "downloads": -1, "filename": "redis_opentracing-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7a65d0ea51541e74a1201b4bd3960e54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8613, "upload_time": "2018-05-15T14:57:35", "url": "https://files.pythonhosted.org/packages/e9/58/f96721b00540bba9a28b7d0d03f48778cf3a81a63d0ee063113a4f6dd5e3/redis_opentracing-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "df73c72989fce3f91c50db34e6e299d1", "sha256": "ed3cbeb3a58d9bcb9cb6625cf3ac33fd089e5bcd7cac3a48d9321c1bc9b43248" }, "downloads": -1, "filename": "redis_opentracing-0.1.2.tar.gz", "has_sig": false, "md5_digest": "df73c72989fce3f91c50db34e6e299d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8925, "upload_time": "2018-11-19T00:12:03", "url": "https://files.pythonhosted.org/packages/c7/61/a77c5fca61ea3eeb836edde8627c22c50bdaccd416d78f1716ddebbc87dd/redis_opentracing-0.1.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "fdfa6fb47df926a9646c7e5cfd88a901", "sha256": "d54d30c57d60d4650561a6c8bf526895e8106e1f92fe22d47468fbe7eaa4a54e" }, "downloads": -1, "filename": "redis_opentracing-1.0.0.tar.gz", "has_sig": false, "md5_digest": "fdfa6fb47df926a9646c7e5cfd88a901", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9333, "upload_time": "2018-12-12T05:19:25", "url": "https://files.pythonhosted.org/packages/f6/43/9920395dc261fee65ea22133b093fb0af28e9880a3198e77aca93e61294a/redis_opentracing-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fdfa6fb47df926a9646c7e5cfd88a901", "sha256": "d54d30c57d60d4650561a6c8bf526895e8106e1f92fe22d47468fbe7eaa4a54e" }, "downloads": -1, "filename": "redis_opentracing-1.0.0.tar.gz", "has_sig": false, "md5_digest": "fdfa6fb47df926a9646c7e5cfd88a901", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9333, "upload_time": "2018-12-12T05:19:25", "url": "https://files.pythonhosted.org/packages/f6/43/9920395dc261fee65ea22133b093fb0af28e9880a3198e77aca93e61294a/redis_opentracing-1.0.0.tar.gz" } ] }