Skip to content

Commit fea09db

Browse files
authored
Fix broken import in opentelemetry readme examples (#33691)
1 parent ce77bfc commit fea09db

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
([#33432](https://github.com/Azure/azure-sdk-for-python/pull/33432))
1515
- Shutdown statsbeat on customer getting 400 error code
1616
([#33489](https://github.com/Azure/azure-sdk-for-python/pull/33489))
17+
- Readme examples are updated with correct imports
18+
([#33691](https://github.com/Azure/azure-sdk-for-python/pull/33691))
1719

1820
## 1.0.0b19 (2023-11-20)
1921

sdk/monitor/azure-monitor-opentelemetry-exporter/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ logging library are tracked and telemetry is exported to application insights wi
162162
import os
163163
import logging
164164

165+
from opentelemetry._logs import set_logger_provider
165166
from opentelemetry.sdk._logs import (
166167
LoggerProvider,
167168
LoggingHandler,
168-
set_logger_provider,
169169
)
170170
from opentelemetry.sdk._logs.export import BatchLogRecordProcessor
171171

@@ -204,10 +204,10 @@ import os
204204
import logging
205205

206206
from opentelemetry import trace
207+
from opentelemetry._logs import set_logger_provider
207208
from opentelemetry.sdk._logs import (
208209
LoggerProvider,
209210
LoggingHandler,
210-
set_logger_provider,
211211
)
212212
from opentelemetry.sdk._logs.export import BatchLogRecordProcessor
213213
from opentelemetry.sdk.trace import TracerProvider
@@ -247,10 +247,10 @@ An example showing how to add custom properties to logging telemetry.
247247
import os
248248
import logging
249249

250+
from opentelemetry._logs import set_logger_provider
250251
from opentelemetry.sdk._logs import (
251252
LoggerProvider,
252253
LoggingHandler,
253-
set_logger_provider,
254254
)
255255
from opentelemetry.sdk._logs.export import BatchLogRecordProcessor
256256

@@ -646,7 +646,7 @@ For detailed overview of OpenTelemetry, visit their [overview](https://github.co
646646

647647
For the official OpenTelemetry Python documentation and how to enable other telemetry scenarios, visit the official OpenTelemetry [website](https://opentelemetry.io/docs/instrumentation/python/).
648648

649-
For more information on the Azure Monitor OpenTelemetry Distro, which is a bundle of useful, pre-assembled components (one of them being this current package) that enable telemetry scenarios with Azure Monitor, visit the [README](https://github.com/microsoft/ApplicationInsights-Python/tree/main/azure-monitor-opentelemetry).
649+
For more information on the Azure Monitor OpenTelemetry Distro, which is a bundle of useful, pre-assembled components (one of them being this current package) that enable telemetry scenarios with Azure Monitor, visit the [README](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry).
650650

651651
## Contributing
652652

sdk/monitor/azure-monitor-opentelemetry/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
license="MIT License",
5757
author="Microsoft Corporation",
5858
author_email="[email protected]",
59-
url="https://github.com/microsoft/ApplicationInsights-Python/tree/main/azure-monitor-opentelemetry",
59+
url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry",
6060
keywords="azure, azure sdk",
6161
classifiers=[
6262
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)