Skip to content

Commit 5c30d5f

Browse files
authored
Fix spelling for OTEL_PYTHON_EXCLUDED_URLS in samples (#43141)
* Fix spelling for OTEL_PYTHON_EXCLUDED_URLS in samples * Updated CHANGELOG * Updated CHANGELOG for exporter
1 parent 710d5e8 commit 5c30d5f

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
([#43060](https://github.com/Azure/azure-sdk-for-python/pull/43060))
1818
- Skip tests from test_storage.py causing transient build pipeline failures
1919
([#43122](https://github.com/Azure/azure-sdk-for-python/pull/43122))
20+
- Fix spelling for OTEL_PYTHON_EXCLUDED_URLS in samples
21+
([#43141](https://github.com/Azure/azure-sdk-for-python/pull/43141))
2022

2123
### Other Changes
2224

sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def exception():
4343
raise Exception("Hit an exception")
4444

4545

46-
# Set the OTEL_PYTHON_EXCLUDE_URLS environment variable to "http://127.0.0.1:8000/exclude"
46+
# Set the OTEL_PYTHON_EXCLUDED_URLS environment variable to "http://127.0.0.1:8000/exclude"
4747
# Telemetry from this endpoint will not be captured due to excluded_urls config above
4848
@app.get("/exclude")
4949
async def exclude():

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

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

1111
- Fix detector version
1212
([#43044](https://github.com/Azure/azure-sdk-for-python/pull/43044))
13+
- Fix spelling for OTEL_PYTHON_EXCLUDED_URLS in samples
14+
([#43141](https://github.com/Azure/azure-sdk-for-python/pull/43141))
1315

1416
### Other Changes
1517

sdk/monitor/azure-monitor-opentelemetry/samples/tracing/http_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def exception():
2626
raise Exception("Hit an exception")
2727

2828

29-
# Set the OTEL_PYTHON_EXCLUDE_URLS environment variable to "http://127.0.0.1:8000/exclude"
29+
# Set the OTEL_PYTHON_EXCLUDED_URLS environment variable to "http://127.0.0.1:8000/exclude"
3030
# Telemetry from this endpoint will not be captured due to excluded_urls config above
3131
@app.get("/exclude")
3232
async def exclude():

sdk/monitor/azure-monitor-opentelemetry/samples/tracing/http_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
try:
2020
# Requests made using the requests library will be automatically captured
2121
response = requests.get("https://azure.microsoft.com/", timeout=5)
22-
# Set the OTEL_PYTHON_EXCLUDE_URLS environment variable to "http://example.com"
22+
# Set the OTEL_PYTHON_EXCLUDED_URLS environment variable to "http://example.com"
2323
# This request will not be tracked due to the excluded_urls configuration
2424
response = requests.get("http://example.com", timeout=5)
2525
logger.warning("Request sent")

0 commit comments

Comments
 (0)