You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`azure-core`][azure_core_library]| The most important library to have installed. It provides shared exceptions and modules for all the Python SDK client libraries. | 1.24.0 |
26
-
|[`msrest`][msrest_library]| Library mainly used for serializing and deserializing objects | 0.7.0 |
27
-
|[`azure-mgmt-core`][azure_mgmt_core_library]| Required if you're generating mgmt plane code (see `--azure-arm` flag in our [flag index][flag_index]. Provides mgmt plane specific shared exceptions and modules. | 1.2.1 |
25
+
|[`azure-core`][azure_core_library]| The most important library to have installed. It provides shared exceptions and modules for all the Python SDK client libraries. | 1.37.0 |
26
+
|[`azure-mgmt-core`][azure_mgmt_core_library]| Required if you're generating mgmt plane code (see `--azure-arm` flag in our [flag index][flag_index]. Provides mgmt plane specific shared exceptions and modules. | 1.6.0 |
28
27
29
28
> Note: We highly recommend tying your library to a major version, for instance, adding `azure-core<2.0.0` to tie the `azure-core` library to `1.x.x`
Our generated code can natively support tracing libraries [`OpenCensus`][open_census] and[`OpenTelemetry`][open_telemetry]. To do so, generate with flag `--trace` (see our [flag index][flag_index] for more information).
3
+
Our generated code natively supports tracing with[`OpenTelemetry`][open_telemetry]. To do so, generate with flag `--trace` (see our [flag index][flag_index] for more information).
4
4
5
-
## OpenCensus
6
-
7
-
First step is to install our [`OpenCensus` library][our_open_census_library]:
8
-
9
-
```python
10
-
pip install azure-core-tracing-opencensus
11
-
```
12
-
13
-
Our generated SDKs handle retrieving context for you, so there's no need to pass in any context. Additionally, the
14
-
OpenCensus threading plugin is included when installing this package.
15
-
16
-
Since there is no explicit context you need to pass, you can create your usual OpenCensus tracer and call the generated SDKs.
17
-
The following example uses [`Azure Monitor`'s][azure_monitor] exporter, but you can use any exporter ([Zipkin][zipkin], etc.).
18
-
19
-
```python
20
-
from opencensus.ext.azure.trace_exporter import AzureExporter
21
-
from opencensus.trace.tracer import Tracer
22
-
from opencensus.trace.samplers import AlwaysOnSampler
23
-
24
-
from azure.identity import DefaultAzureCredential
25
-
from azure.pets import PetsClient
26
-
27
-
exporter = AzureExporter(
28
-
instrumentation_key="uuid of the instrumentation key (see your Azure Monitor account)"
Copy file name to clipboardExpand all lines: docs/migrate/readme.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,11 @@ tell AutoRest during generation time to keep the current version file in the dir
23
23
24
24
* Type annotations using the standard `typing` library. SDKs are [`mypy`][mypy] ready!
25
25
* This client has stable and official support for async. Look in the `aio` namespace of your generated package to find the async client.
26
-
* The client now natively supports tracing libraries such as [`OpenCensus`][open_census] and[`OpenTelemetry`][open_telemetry]. Use the flag `--trace` to generate
26
+
* The client now natively supports tracing with[`OpenTelemetry`][open_telemetry]. Use the flag `--trace` to generate
27
27
code for this, and you can see our [tracing docs][tracing_docs] for more information.
28
28
29
+
> **Note:**[`OpenCensus`][open_census] has been deprecated and is no longer supported. Please use [`OpenTelemetry`][open_telemetry] instead.
0 commit comments