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
Copy file name to clipboardExpand all lines: sdk/core/azure-core/CHANGELOG.md
+20-1
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,34 @@
1
1
# Release History
2
2
3
-
## 1.32.1 (Unreleased)
3
+
## 1.33.0 (Unreleased)
4
4
5
5
### Features Added
6
6
7
+
- Added native OpenTelemetry tracing to Azure Core which enables users to use OpenTelemetry to trace Azure SDK operations without needing to install a plugin. #39563
8
+
- To enable native OpenTelemetry tracing, users need to:
9
+
1. Have `opentelemetry-api` installed.
10
+
2. Ensure that `settings.tracing_implementation` is not set.
11
+
3. Ensure that `settings.tracing_enabled` is set to `True`.
12
+
- If `setting.tracing_implementation` is set, the tracing plugin will be used instead of the native tracing.
13
+
- If `settings.tracing_enabled` is set to `False`, tracing will be disabled.
14
+
- The `OpenTelemetryTracer` class was added to the `azure.core.tracing.opentelemetry` module. This is a wrapper around the OpenTelemetry tracer that is used to create spans for Azure SDK operations.
15
+
- Added a `get_tracer` method to the new `azure.core.instrumentation` module. This method returns an instance of the `OpenTelemetryTracer` class if OpenTelemetry is available.
16
+
- A `TracingOptions` TypedDict class was added to define the options that SDK users can use to configure tracing per-operation. These options include the ability to enable or disable tracing and set additional attributes on spans.
17
+
- Example usage: `client.method(tracing_options={"enabled": True, "attributes": {"foo": "bar"}})`
18
+
- The `DistributedTracingPolicy` and `distributed_trace`/`distributed_trace_async` decorators now uses the OpenTelemetry tracer if it is available and native tracing is enabled.
19
+
- SDK clients can define an `_instrumentation_config` class variable to configure the OpenTelemetry tracer used in method span creation. Possible configuration options are `library_name`, `library_version`, `schema_url`, and `attributes`.
20
+
-`DistributedTracingPolicy` now accepts a `instrumentation_config` keyword argument to configure the OpenTelemetry tracer used in HTTP span creation.
21
+
7
22
### Breaking Changes
8
23
24
+
- Removed automatic tracing enablement for the OpenTelemetry plugin if `opentelemetry` was imported. To enable tracing with the plugin, please import `azure.core.settings.settings` and set `settings.tracing_implementation` to `"opentelemetry"`. #39563
25
+
9
26
### Bugs Fixed
10
27
11
28
### Other Changes
12
29
30
+
- Added `opentelemetry-api` as an optional dependency for tracing. This can be installed with `pip install azure-core[tracing]`. #39563
0 commit comments