Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
### Breaking Changes

### Bugs Fixed
- Fix fallback logic when connection string is provided only via environment variable
([#45252](https://github.com/Azure/azure-sdk-for-python/pull/45252))

### Other Changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def _initialize(self) -> None:
env_cs = self._parse_connection_string(os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING"))
env_ikey = os.getenv("APPINSIGHTS_INSTRUMENTATIONKEY")

if not self._connection_string:
self._connection_string = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")

# The priority of which value takes on the instrumentation key is:
# 1. Key from explicitly passed in connection string
# 2. Key from explicitly passed in instrumentation key
Expand Down
Loading