azpaddypy 0.2.6__py3-none-any.whl → 0.2.7__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 CHANGED
@@ -35,6 +35,7 @@ class AzureLogger:
35
35
  log_level: int = logging.INFO,
36
36
  enable_console_logging: bool = True,
37
37
  custom_resource_attributes: Optional[Dict[str, str]] = None,
38
+ instrumentation_options: Optional[Dict[str, Any]] = None,
38
39
  ):
39
40
  """
40
41
  Initialize the Azure Logger with OpenTelemetry tracing
@@ -46,6 +47,7 @@ class AzureLogger:
46
47
  log_level: Logging level (default: INFO)
47
48
  enable_console_logging: Enable console output for local development
48
49
  custom_resource_attributes: Additional resource attributes
50
+ instrumentation_options: Instrumentation options
49
51
  """
50
52
  self.service_name = service_name
51
53
  self.service_version = service_version
@@ -70,6 +72,7 @@ class AzureLogger:
70
72
  connection_string=self.connection_string,
71
73
  resource_attributes=resource_attributes,
72
74
  enable_live_metrics=True,
75
+ instrumentation_options=instrumentation_options,
73
76
  )
74
77
  self._telemetry_enabled = True
75
78
  except Exception as e:
@@ -640,6 +643,7 @@ def create_app_logger(
640
643
  log_level: int = logging.INFO,
641
644
  enable_console_logging: bool = True,
642
645
  custom_resource_attributes: Optional[Dict[str, str]] = None,
646
+ instrumentation_options: Optional[Dict[str, Any]] = None,
643
647
  ) -> AzureLogger:
644
648
  """
645
649
  Factory function to create an AzureLogger instance. If a logger with the
@@ -652,6 +656,7 @@ def create_app_logger(
652
656
  log_level: Logging level
653
657
  enable_console_logging: Enable console output
654
658
  custom_resource_attributes: Additional resource attributes
659
+ instrumentation_options: Instrumentation options
655
660
 
656
661
  Returns:
657
662
  Configured AzureLogger instance
@@ -695,6 +700,7 @@ def create_function_logger(
695
700
  function_name: str,
696
701
  service_version: str = "1.0.0",
697
702
  connection_string: Optional[str] = None,
703
+ instrumentation_options: Optional[Dict[str, Any]] = None,
698
704
  ) -> AzureLogger:
699
705
  """
700
706
  Factory function specifically for Azure Functions
@@ -704,6 +710,7 @@ def create_function_logger(
704
710
  function_name: Name of the specific function
705
711
  service_version: Version of the service
706
712
  connection_string: Application Insights connection string
713
+ instrumentation_options: Instrumentation options
707
714
 
708
715
  Returns:
709
716
  Configured AzureLogger instance for Azure Functions
@@ -719,4 +726,5 @@ def create_function_logger(
719
726
  service_version=service_version,
720
727
  connection_string=connection_string,
721
728
  custom_resource_attributes=custom_attributes,
729
+ instrumentation_options=instrumentation_options,
722
730
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: azpaddypy
3
- Version: 0.2.6
3
+ Version: 0.2.7
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
@@ -0,0 +1,9 @@
1
+ azpaddypy/mgmt/__init__.py,sha256=5-0eZuJMZlCONZNJ5hEvWXfvLIM36mg7FsEVs32bY_A,183
2
+ azpaddypy/mgmt/logging.py,sha256=-otodXu7LhOigQgoZiuGTy83i79NUsgF0AGcZWVHnBE,26559
3
+ azpaddypy/test_function/__init__.py,sha256=0NjUl36wvUWV79GpRwBFkgkBaC6uDZsTdaSVOIHMFEU,3481
4
+ azpaddypy/test_function/function_app.py,sha256=6nX54-iq0L1l_hZpD6E744-j79oLxdaldFyWDCpwH7c,3867
5
+ azpaddypy-0.2.7.dist-info/licenses/LICENSE,sha256=hQ6t0g2QaewGCQICHqTckBFbMVakGmoyTAzDpmEYV4c,1089
6
+ azpaddypy-0.2.7.dist-info/METADATA,sha256=_RJdtcXLOeLiysiCLkDLwGFTv8EUhRHHfP11P54kDng,747
7
+ azpaddypy-0.2.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ azpaddypy-0.2.7.dist-info/top_level.txt,sha256=hsDuboDhT61320ML8X479ezSTwT3rrlDWz1_Z45B2cs,10
9
+ azpaddypy-0.2.7.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- azpaddypy/mgmt/__init__.py,sha256=5-0eZuJMZlCONZNJ5hEvWXfvLIM36mg7FsEVs32bY_A,183
2
- azpaddypy/mgmt/logging.py,sha256=7Ug99lg8gsvCGq0HukR0qWVl-_vacEq-poq2rUj24d4,26060
3
- azpaddypy/test_function/__init__.py,sha256=0NjUl36wvUWV79GpRwBFkgkBaC6uDZsTdaSVOIHMFEU,3481
4
- azpaddypy/test_function/function_app.py,sha256=6nX54-iq0L1l_hZpD6E744-j79oLxdaldFyWDCpwH7c,3867
5
- azpaddypy-0.2.6.dist-info/licenses/LICENSE,sha256=hQ6t0g2QaewGCQICHqTckBFbMVakGmoyTAzDpmEYV4c,1089
6
- azpaddypy-0.2.6.dist-info/METADATA,sha256=jycbdYSHrsBp0riAHepPVTGZ-oQNMGWzngkhwC0A7vk,747
7
- azpaddypy-0.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- azpaddypy-0.2.6.dist-info/top_level.txt,sha256=hsDuboDhT61320ML8X479ezSTwT3rrlDWz1_Z45B2cs,10
9
- azpaddypy-0.2.6.dist-info/RECORD,,