Skip to content

Commit f843d8d

Browse files
authored
[Core] Deprecate OpenCensus tracing plugin (#37975)
Signed-off-by: Paul Van Eck <[email protected]>
1 parent 5a54fe8 commit f843d8d

File tree

4 files changed

+7
-66
lines changed

4 files changed

+7
-66
lines changed

eng/.docsettings.yml

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ known_content_issues:
120120
- ['sdk/core/azure-common/README.rst', 'common']
121121
- ['sdk/core/azure-core/README.md', 'common']
122122
- ['sdk/core/azure-core/samples/README.md', 'common']
123+
- ['sdk/core/azure-core-tracing-opencensus/README.md', 'common']
123124
- ['sdk/core/azure-core-tracing-opentelemetry/README.md', 'common']
124125
- ['sdk/core/corehttp/README.md', 'common']
125126
- ['sdk/core/corehttp/samples/README.md', 'common']

sdk/core/azure-core-tracing-opencensus/CHANGELOG.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
# Release History
22

3-
## 1.0.0b10 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
3+
## 1.0.0b10 (2024-11-05)
104

115
### Other Changes
126

7+
- This package has been deprecated and will no longer be maintained after 11-05-2024. Use the [azure-core-tracing-opentelemetry](https://pypi.org/project/azure-core-tracing-opentelemetry/) package for tracing support in Azure SDK libraries.
8+
139
## 1.0.0b9 (2023-05-09)
1410

1511
### Bugs Fixed
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,5 @@
1-
2-
31
# Azure Core Tracing OpenCensus client library for Python
42

5-
## Getting started
6-
7-
Install the opencensus python for Python with [pip](https://pypi.org/project/pip/):
8-
9-
```bash
10-
pip install azure-core-tracing-opencensus --pre
11-
```
12-
13-
Now you can use opencensus for Python as usual with any SDKs that is compatible
14-
with azure-core tracing. This includes (not exhaustive list), azure-storage-blob, azure-keyvault-secrets, azure-eventhub, etc.
15-
16-
## Key concepts
17-
18-
* You don't need to pass any context, SDK will get it for you
19-
* The opencensus threading plugin is installed with this package
20-
21-
## Examples
22-
23-
There is no explicit context to pass, you just create your usual opencensus and tracer and
24-
call any SDK code that is compatible with azure-core tracing. This is an example
25-
using Azure Monitor exporter, but you can use any exporter (Zipkin, etc.).
26-
27-
```python
28-
from opencensus.ext.azure.trace_exporter import AzureExporter
29-
30-
from opencensus.trace.tracer import Tracer
31-
from opencensus.trace.samplers import AlwaysOnSampler
32-
33-
from azure.storage.blob import BlobServiceClient
34-
35-
exporter = AzureExporter(
36-
instrumentation_key="uuid of the instrumentation key (see your Azure Monitor account)"
37-
)
38-
39-
tracer = Tracer(exporter=exporter, sampler=AlwaysOnSampler())
40-
with tracer.span(name="MyApplication") as span:
41-
client = BlobServiceClient.from_connection_string('connectionstring')
42-
client.delete_container('my_container') # Call will be traced
43-
```
44-
45-
46-
## Troubleshooting
47-
48-
This client raises exceptions defined in [Azure Core](https://docs.microsoft.com/python/api/azure-core/azure.core.exceptions?view=azure-python).
49-
50-
51-
## Next steps
52-
53-
More documentation on OpenCensus configuration can be found on the [OpenCensus website](https://opencensus.io)
54-
55-
56-
## Contributing
57-
This 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.
58-
59-
When 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.
3+
This package has been deprecated and will no longer be maintained after 11-05-2024.
604

61-
This 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 [[email protected]](mailto:[email protected]) with any additional questions or comments.
5+
Please use the [Azure Core Tracing OpenTelemetry](https://pypi.org/project/azure-core-tracing-opentelemetry/) package for tracing support in Azure SDK libraries.

sdk/core/azure-core-tracing-opencensus/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opencensus",
4242
keywords="azure, azure sdk",
4343
classifiers=[
44-
"Development Status :: 4 - Beta",
44+
"Development Status :: 7 - Inactive",
4545
"Programming Language :: Python",
4646
"Programming Language :: Python :: 3 :: Only",
4747
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)