Skip to content

Commit 1d4fe36

Browse files
authored
[Core] Make OTel the preferred tracing plugin (#35050)
This changes the order for which we try to use tracing plugins. Now, the OTel plugin will be checked first. Signed-off-by: Paul Van Eck <[email protected]>
1 parent ed0c806 commit 1d4fe36

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sdk/core/azure-core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
### Other Changes
1212

13+
- The Azure Core OpenTelemetry tracing plugin will now be the preferred tracing plugin over the OpenCensus plugin. If both plugins are installed and `opentelemetry` is imported, then OpenTelemetry will be used to trace Azure SDK operations. #35050
14+
1315
## 1.30.2 (2024-06-06)
1416

1517
### Features Added

sdk/core/azure-core/azure/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def convert_tracing_impl(value: Optional[Union[str, Type[AbstractSpan]]]) -> Opt
181181
"""
182182
if value is None:
183183
return (
184-
_get_opencensus_span_if_opencensus_is_imported() or _get_opentelemetry_span_if_opentelemetry_is_imported()
184+
_get_opentelemetry_span_if_opentelemetry_is_imported() or _get_opencensus_span_if_opencensus_is_imported()
185185
)
186186

187187
if not isinstance(value, str):

0 commit comments

Comments
 (0)