You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_configuration/__init__.py
+35-32Lines changed: 35 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -24,18 +24,19 @@
24
24
@dataclass
25
25
class_ConfigurationState:
26
26
"""Immutable state object for configuration data."""
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_configuration/_state.py
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
# Global singleton instance for easy access throughout the codebase
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_configuration/_utils.py
+25-20Lines changed: 25 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
fromtypingimportDict, Optional, Any
5
5
importjson
6
6
importlogging
7
+
7
8
# mypy: disable-error-code="import-untyped"
8
9
importrequests
9
10
@@ -18,6 +19,7 @@
18
19
19
20
class_ConfigurationProfile:
20
21
"""Profile for the current running SDK."""
22
+
21
23
os: str=""
22
24
rp: str=""
23
25
attach: str=""
@@ -28,18 +30,18 @@ class _ConfigurationProfile:
28
30
@classmethod
29
31
deffill(cls, **kwargs) ->None:
30
32
"""Update only the class variables that are provided in kwargs and haven't been updated yet."""
31
-
if'os'inkwargsandcls.os=="":
32
-
cls.os=kwargs['os']
33
-
if'version'inkwargsandcls.version=="":
34
-
cls.version=kwargs['version']
35
-
if'component'inkwargsandcls.component=="":
36
-
cls.component=kwargs['component']
37
-
if'rp'inkwargsandcls.rp=="":
38
-
cls.rp=kwargs['rp']
39
-
if'attach'inkwargsandcls.attach=="":
40
-
cls.attach=kwargs['attach']
41
-
if'region'inkwargsandcls.region=="":
42
-
cls.region=kwargs['region']
33
+
if"os"inkwargsandcls.os=="":
34
+
cls.os=kwargs["os"]
35
+
if"version"inkwargsandcls.version=="":
36
+
cls.version=kwargs["version"]
37
+
if"component"inkwargsandcls.component=="":
38
+
cls.component=kwargs["component"]
39
+
if"rp"inkwargsandcls.rp=="":
40
+
cls.rp=kwargs["rp"]
41
+
if"attach"inkwargsandcls.attach=="":
42
+
cls.attach=kwargs["attach"]
43
+
if"region"inkwargsandcls.region=="":
44
+
cls.region=kwargs["region"]
43
45
44
46
45
47
classOneSettingsResponse:
@@ -64,7 +66,7 @@ def __init__(
64
66
settings: Optional[Dict[str, str]] =None,
65
67
version: Optional[int] =None,
66
68
status_code: int=200,
67
-
has_exception: bool=False
69
+
has_exception: bool=False,
68
70
):
69
71
"""Initialize OneSettingsResponse with configuration data.
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_configuration/_worker.py
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
9
9
logger=logging.getLogger(__name__)
10
10
11
+
11
12
class_ConfigurationWorker:
12
13
"""Background worker thread for periodic configuration refresh from OneSettings.
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_connection_string_parser.py
0 commit comments