{ "info": { "author": "Microsoft Corporation", "author_email": "azpysdkhelp@microsoft.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\n\n# Azure Core Tracing OpenCensus client library for Python\n\n## Getting started\n\nInstall the opencensus python for Python with [pip](https://pypi.org/project/pip/):\n\n```bash\npip install azure-core-tracing-opencensus --pre\n```\n\nNow you can use opencensus for Python as usual with any SDKs that is compatible\nwith azure-core tracing. This includes (not exhaustive list), azure-storage-blob, azure-keyvault-secrets, azure-eventhub, etc.\n\n## Key concepts\n\n* You don't need to pass any context, SDK will get it for you\n* The opencensus threading plugin is installed with this package\n\n## Examples\n\nThere is no explicit context to pass, you just create your usual opencensus and tracer and\ncall any SDK code that is compatible with azure-core tracing. This is an example\nusing Azure Monitor exporter, but you can use any exporter (Zipkin, etc.).\n\n```python\nfrom opencensus.ext.azure.trace_exporter import AzureExporter\n\nfrom opencensus.trace.tracer import Tracer\nfrom opencensus.trace.samplers import AlwaysOnSampler\n\nfrom azure.storage.blob import BlobServiceClient\n\nexporter = AzureExporter(\n instrumentation_key=\"uuid of the instrumentation key (see your Azure Monitor account)\"\n)\n\ntracer = Tracer(exporter=exporter, sampler=AlwaysOnSampler())\nwith tracer.span(name=\"MyApplication\") as span:\n client = BlobServiceClient.from_connection_string('connectionstring')\n client.delete_container('mycontainer') # Call will be traced\n```\n\n\n## Troubleshooting\n\nThis client raises exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/docs/exceptions.md).\n\n\n## Next steps\n\nMore documentation on OpenCensus configuration can be found on the [OpenCensus website](https://opencensus.io)\n\n\n## Contributing\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n\n\n# Release History\n\n-------------------\n\n## 2019-10-07 Version 1.0.0b4\n\n### Features\n\n- Opencensus implementation of azure-core tracing protocol\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opencensus", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "azure-core-tracing-opencensus", "package_url": "https://pypi.org/project/azure-core-tracing-opencensus/", "platform": "", "project_url": "https://pypi.org/project/azure-core-tracing-opencensus/", "project_urls": { "Homepage": "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opencensus" }, "release_url": "https://pypi.org/project/azure-core-tracing-opencensus/1.0.0b4/", "requires_dist": [ "opencensus (>=0.6.0)", "opencensus-ext-azure (>=0.3.1)", "opencensus-ext-threading", "azure-core (<2.0.0,>=1.0.0b4)", "typing ; python_version<'3.5'" ], "requires_python": "", "summary": "Microsoft Azure Azure Core Opencensus plugin Library for Python", "version": "1.0.0b4" }, "last_serial": 5941160, "releases": { "1.0.0b4": [ { "comment_text": "", "digests": { "md5": "a180b4d4576cfbc4ea750a1102efd2c3", "sha256": "762535cc73c1eb9e1ba18d2a9f195838eb0decc3db9c3ca9424c305686dac8c8" }, "downloads": -1, "filename": "azure_core_tracing_opencensus-1.0.0b4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a180b4d4576cfbc4ea750a1102efd2c3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5380, "upload_time": "2019-10-07T20:03:42", "url": "https://files.pythonhosted.org/packages/ce/04/0ef3d90a043d0e53647cfcc4e74c77edb83d13020771ebc4a11e6dc3f4a0/azure_core_tracing_opencensus-1.0.0b4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6f1df65572269ae3d238aa79ee81adde", "sha256": "7ba56f7e871ca6de6a6171d6df113d5beb399e76ff56e1277f10a6c8208ec231" }, "downloads": -1, "filename": "azure-core-tracing-opencensus-1.0.0b4.zip", "has_sig": false, "md5_digest": "6f1df65572269ae3d238aa79ee81adde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24066, "upload_time": "2019-10-07T20:03:45", "url": "https://files.pythonhosted.org/packages/65/7d/8786ebc229becf9cc7b081bf8c46c3675ddf98e9503f141365215e0ee489/azure-core-tracing-opencensus-1.0.0b4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a180b4d4576cfbc4ea750a1102efd2c3", "sha256": "762535cc73c1eb9e1ba18d2a9f195838eb0decc3db9c3ca9424c305686dac8c8" }, "downloads": -1, "filename": "azure_core_tracing_opencensus-1.0.0b4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a180b4d4576cfbc4ea750a1102efd2c3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5380, "upload_time": "2019-10-07T20:03:42", "url": "https://files.pythonhosted.org/packages/ce/04/0ef3d90a043d0e53647cfcc4e74c77edb83d13020771ebc4a11e6dc3f4a0/azure_core_tracing_opencensus-1.0.0b4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6f1df65572269ae3d238aa79ee81adde", "sha256": "7ba56f7e871ca6de6a6171d6df113d5beb399e76ff56e1277f10a6c8208ec231" }, "downloads": -1, "filename": "azure-core-tracing-opencensus-1.0.0b4.zip", "has_sig": false, "md5_digest": "6f1df65572269ae3d238aa79ee81adde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24066, "upload_time": "2019-10-07T20:03:45", "url": "https://files.pythonhosted.org/packages/65/7d/8786ebc229becf9cc7b081bf8c46c3675ddf98e9503f141365215e0ee489/azure-core-tracing-opencensus-1.0.0b4.zip" } ] }