warpzone-sdk 15.0.0.dev11__py3-none-any.whl → 15.0.0.dev13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
warpzone/monitor/logs.py CHANGED
@@ -70,9 +70,14 @@ def get_logger(name: str):
70
70
  logger = logging.getLogger(name)
71
71
  logger.setLevel(logging.INFO)
72
72
 
73
- if not logger.hasHandlers():
74
- # add OTEL handler
73
+ # Check if OTEL handler is already added to this specific logger
74
+ # (not using hasHandlers() as it also checks parent/root handlers)
75
+ has_otel_handler = any(isinstance(h, LoggingHandler) for h in logger.handlers)
76
+ if not has_otel_handler:
77
+ # add OTEL handler for trace correlation
75
78
  handler = LoggingHandler()
76
79
  logger.addHandler(handler)
80
+ # Don't propagate to root logger to avoid duplicate logs
81
+ logger.propagate = False
77
82
 
78
83
  return logger
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: warpzone-sdk
3
- Version: 15.0.0.dev11
3
+ Version: 15.0.0.dev13
4
4
  Summary: The main objective of this package is to centralize logic used to interact with Azure Functions, Azure Service Bus and Azure Table Storage
5
5
  Author: Team Enigma
6
6
  Author-email: enigma@energinet.dk
@@ -13,11 +13,9 @@ Classifier: Programming Language :: Python :: 3.13
13
13
  Classifier: Programming Language :: Python :: 3.14
14
14
  Requires-Dist: aiohttp (>=3.8.3)
15
15
  Requires-Dist: azure-core (>=1.26.3)
16
- Requires-Dist: azure-core-tracing-opentelemetry (>=1.0.0b12)
17
16
  Requires-Dist: azure-data-tables (>=12.4.0)
18
17
  Requires-Dist: azure-functions (>=1.12.0)
19
18
  Requires-Dist: azure-identity (>=1.15.0)
20
- Requires-Dist: azure-monitor-opentelemetry (>=1.8.4)
21
19
  Requires-Dist: azure-monitor-opentelemetry-exporter (>=1.0.0b36)
22
20
  Requires-Dist: azure-servicebus (>=7.8.0)
23
21
  Requires-Dist: azure-storage-blob (>=12.14.1)
@@ -28,7 +28,7 @@ warpzone/function/types.py,sha256=5m2hRrnLC3eqIlAH5-MM9_wKjMZ6lYawZtCOVStyFuY,72
28
28
  warpzone/healthchecks/__init__.py,sha256=9gc_Mt2szs8sDSwy0V4l3JZ6d9hX41xTpZCkDP2qsY4,2108
29
29
  warpzone/healthchecks/model.py,sha256=mM7DnrirLbUpBPPfi82MUPP654D0eOR2_F65TmzsPD0,1187
30
30
  warpzone/monitor/__init__.py,sha256=gXT2cxR4tlZER54zd7D49ZQBVyitLaqj13_cUoILuyM,109
31
- warpzone/monitor/logs.py,sha256=ED6gyOegDLWIMTau3kzkoNgm90EHkRLDr6tnlmq7nq8,2648
31
+ warpzone/monitor/logs.py,sha256=HVlLWv_NbJAmm4g43SlM4zYz2F_pRJrI11pjOEAnlzc,2987
32
32
  warpzone/monitor/traces.py,sha256=ARd8IW1BqCRgOXu-A_guOAOGpGvpKhJRTzjJgbAgx5Y,3994
33
33
  warpzone/servicebus/data/__init__.py,sha256=lnc0uiaGLF0qMi_rWhCpRSFvaj0CJEiMCAl6Yqn1ZiA,21
34
34
  warpzone/servicebus/data/client.py,sha256=zECS3JwedhYnDk8PntYgIYpBF_uu9YN38KzpPFK7CKs,6511
@@ -52,6 +52,6 @@ warpzone/tools/copy.py,sha256=5fddotMZkXZO8avzUbGOhvs0cp8mce95pNpy0oPVjnQ,2596
52
52
  warpzone/transform/__init__.py,sha256=ruGa7tl-v4ndlWpULE1jSGU_a4_iRc3V6eyNr5xKP9E,27
53
53
  warpzone/transform/data.py,sha256=Abb8PcrgMbbNCJkkIUdtrTHdlY0OfXid387qw1nDpFY,2362
54
54
  warpzone/transform/schema.py,sha256=nbSQtDMvXkyqGKuwhuFCF0WsEDsaNyoPYpMKvbsKlv8,2423
55
- warpzone_sdk-15.0.0.dev11.dist-info/METADATA,sha256=6ItHgs5ALgT2jaV5V9_8tipUiMnzfm_h0ciTcZ79Y_Q,7399
56
- warpzone_sdk-15.0.0.dev11.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
57
- warpzone_sdk-15.0.0.dev11.dist-info/RECORD,,
55
+ warpzone_sdk-15.0.0.dev13.dist-info/METADATA,sha256=diG21hT6W77E7aoY22H7XGDO4U4cyAnPp7_8GRRzZLY,7285
56
+ warpzone_sdk-15.0.0.dev13.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
57
+ warpzone_sdk-15.0.0.dev13.dist-info/RECORD,,