Skip to content

Commit cc29b41

Browse files
authored
Fix siteName casing (#33808)
* Fix siteName casing * changelog
1 parent 3b1d8be commit cc29b41

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

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

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

1313
- Implement distro detection for statsbeat feature
1414
([#33761](https://github.com/Azure/azure-sdk-for-python/pull/33761))
15+
- Fix siteName in diagnostic logging
16+
([#33808](https://github.com/Azure/azure-sdk-for-python/pull/33808))
1517

1618
## 1.1.1 (2023-12-04)
1719

sdk/monitor/azure-monitor-opentelemetry/azure/monitor/opentelemetry/_diagnostics/diagnostic_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _initialize(cls):
5151
+ '"message":"%(message)s", '
5252
+ '"properties":{'
5353
+ '"operation":"Startup", '
54-
+ f'"sitename":"{_SITE_NAME}", '
54+
+ f'"siteName":"{_SITE_NAME}", '
5555
+ f'"ikey":"{_get_customer_ikey_from_env_var()}", '
5656
+ f'"extensionVersion":"{_EXTENSION_VERSION}", '
5757
+ f'"sdkVersion":"{VERSION}", '

sdk/monitor/azure-monitor-opentelemetry/tests/diagnostics/test_diagnostic_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def check_file_for_messages(file_path, level, messages):
4141
assert json["message"] == message
4242
properties = json["properties"]
4343
assert properties["operation"] == "Startup"
44-
assert properties["sitename"] == TEST_SITE_NAME
44+
assert properties["siteName"] == TEST_SITE_NAME
4545
assert properties["ikey"] == TEST_CUSTOMER_IKEY
4646
assert properties["extensionVersion"] == TEST_EXTENSION_VERSION
4747
assert properties["sdkVersion"] == TEST_VERSION

0 commit comments

Comments
 (0)