azpaddypy 0.5.6__py3-none-any.whl → 0.5.8__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.
- azpaddypy/mgmt/logging.py +4 -1
- {azpaddypy-0.5.6.dist-info → azpaddypy-0.5.8.dist-info}/METADATA +1 -1
- {azpaddypy-0.5.6.dist-info → azpaddypy-0.5.8.dist-info}/RECORD +6 -6
- {azpaddypy-0.5.6.dist-info → azpaddypy-0.5.8.dist-info}/WHEEL +0 -0
- {azpaddypy-0.5.6.dist-info → azpaddypy-0.5.8.dist-info}/licenses/LICENSE +0 -0
- {azpaddypy-0.5.6.dist-info → azpaddypy-0.5.8.dist-info}/top_level.txt +0 -0
azpaddypy/mgmt/logging.py
CHANGED
@@ -86,7 +86,6 @@ class AzureLogger:
|
|
86
86
|
resource_attributes = {
|
87
87
|
"service.name": effective_cloud_role_name,
|
88
88
|
"service.version": service_version,
|
89
|
-
"service.instance.id": os.getenv("WEBSITE_INSTANCE_ID", "local"),
|
90
89
|
}
|
91
90
|
|
92
91
|
if custom_resource_attributes:
|
@@ -122,6 +121,7 @@ class AzureLogger:
|
|
122
121
|
# Initialize OpenTelemetry tracer and correlation context
|
123
122
|
self.tracer = trace.get_tracer(__name__)
|
124
123
|
self._correlation_id = None
|
124
|
+
|
125
125
|
|
126
126
|
self.info(
|
127
127
|
f"Azure Logger initialized for service '{service_name}' v{service_version} "
|
@@ -878,6 +878,7 @@ def create_function_logger(
|
|
878
878
|
function_name: str,
|
879
879
|
service_version: str = "1.0.0",
|
880
880
|
connection_string: Optional[str] = None,
|
881
|
+
log_level: int = logging.INFO,
|
881
882
|
instrumentation_options: Optional[Dict[str, Any]] = None,
|
882
883
|
cloud_role_name: Optional[str] = None,
|
883
884
|
) -> AzureLogger:
|
@@ -892,6 +893,7 @@ def create_function_logger(
|
|
892
893
|
function_name: Specific function name
|
893
894
|
service_version: Service version for metadata
|
894
895
|
connection_string: Application Insights connection string
|
896
|
+
log_level: Python logging level
|
895
897
|
instrumentation_options: Azure Monitor instrumentation options
|
896
898
|
cloud_role_name: Override cloud role name (defaults to '{function_app_name}.{function_name}')
|
897
899
|
|
@@ -910,6 +912,7 @@ def create_function_logger(
|
|
910
912
|
service_name=default_service_name,
|
911
913
|
service_version=service_version,
|
912
914
|
connection_string=connection_string,
|
915
|
+
log_level=log_level,
|
913
916
|
custom_resource_attributes=custom_attributes,
|
914
917
|
instrumentation_options=instrumentation_options,
|
915
918
|
cloud_role_name=cloud_role_name,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: azpaddypy
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.8
|
4
4
|
Summary: Comprehensive Python logger for Azure, integrating OpenTelemetry for advanced, structured, and distributed tracing.
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
6
6
|
Classifier: Operating System :: OS Independent
|
@@ -2,11 +2,11 @@ azpaddypy/__init__.py,sha256=hrWNAh4OHZOvm3Pbhq5eUjO-pSRYn0h0W0J87tc-lNI,45
|
|
2
2
|
azpaddypy/mgmt/__init__.py,sha256=waW9EAnTFDh2530ieQX1Z0r0Z-ZKHRwabVDfapjfN58,441
|
3
3
|
azpaddypy/mgmt/identity.py,sha256=mA_krQslMsK_sDob-z-QA0B9khK_JUO2way7xwPopR8,12001
|
4
4
|
azpaddypy/mgmt/local_env_manager.py,sha256=WHXJXHQFGwkgr96YkEtqpgFUxmCjBa5pArbNxZUSKQk,7762
|
5
|
-
azpaddypy/mgmt/logging.py,sha256=
|
5
|
+
azpaddypy/mgmt/logging.py,sha256=nXsgujCyhEzZm8QjThCGm0OiCwcVTJyhw6EI1jjKEn0,36549
|
6
6
|
azpaddypy/resources/__init__.py,sha256=Bvt3VK4RqwoxYpoh6EbLXIR18RuFPKaLP6zLL-icyFk,314
|
7
7
|
azpaddypy/resources/keyvault.py,sha256=4J08vLqoLFd1_UUDBji2oG2fatZaPkgnRyT_Z6wHAOc,20312
|
8
|
-
azpaddypy-0.5.
|
9
|
-
azpaddypy-0.5.
|
10
|
-
azpaddypy-0.5.
|
11
|
-
azpaddypy-0.5.
|
12
|
-
azpaddypy-0.5.
|
8
|
+
azpaddypy-0.5.8.dist-info/licenses/LICENSE,sha256=hQ6t0g2QaewGCQICHqTckBFbMVakGmoyTAzDpmEYV4c,1089
|
9
|
+
azpaddypy-0.5.8.dist-info/METADATA,sha256=Zfkgu4AXcIPGcmYn18K-0mTop7uJpa3GcfNA2JOYJ48,665
|
10
|
+
azpaddypy-0.5.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
azpaddypy-0.5.8.dist-info/top_level.txt,sha256=hsDuboDhT61320ML8X479ezSTwT3rrlDWz1_Z45B2cs,10
|
12
|
+
azpaddypy-0.5.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|