esd-services-api-client 2.6.3a155.dev7__py3-none-any.whl → 2.6.3a155.dev19__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.
- esd_services_api_client/_version.py +1 -1
- esd_services_api_client/nexus/abstractions/metrics_provider_factory.py +6 -9
- esd_services_api_client/nexus/algorithms/_baseline_algorithm.py +1 -1
- esd_services_api_client/nexus/algorithms/_remote_algorithm.py +1 -1
- esd_services_api_client/nexus/algorithms/forked_algorithm.py +1 -1
- esd_services_api_client/nexus/core/app_core.py +6 -3
- {esd_services_api_client-2.6.3a155.dev7.dist-info → esd_services_api_client-2.6.3a155.dev19.dist-info}/METADATA +1 -1
- {esd_services_api_client-2.6.3a155.dev7.dist-info → esd_services_api_client-2.6.3a155.dev19.dist-info}/RECORD +10 -10
- {esd_services_api_client-2.6.3a155.dev7.dist-info → esd_services_api_client-2.6.3a155.dev19.dist-info}/LICENSE +0 -0
- {esd_services_api_client-2.6.3a155.dev7.dist-info → esd_services_api_client-2.6.3a155.dev19.dist-info}/WHEEL +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = 'v2.6.3a155.
|
1
|
+
__version__ = 'v2.6.3a155.dev19'
|
@@ -89,18 +89,15 @@ class MetricsProviderFactory:
|
|
89
89
|
Creates a metrics provider enriched with additional tags for each metric emitted by this algorithm.
|
90
90
|
In case of DatadogMetricsProvider, takes care of UDP/UDS specific initialization.
|
91
91
|
"""
|
92
|
-
self._metrics_settings.
|
92
|
+
init_args = self._metrics_settings.init_args | {
|
93
|
+
"fixed_tags": self._metrics_settings.fixed_tags | self._global_tags
|
94
|
+
}
|
93
95
|
|
94
96
|
if self._metrics_class == DatadogMetricsProvider:
|
95
97
|
if self._metrics_settings.protocol == "udp":
|
96
|
-
return self._metrics_class.udp(**
|
98
|
+
return self._metrics_class.udp(**init_args)
|
97
99
|
|
98
100
|
if self._metrics_settings.protocol == "uds":
|
99
|
-
return self._metrics_class.uds(**
|
101
|
+
return self._metrics_class.uds(**init_args)
|
100
102
|
|
101
|
-
return self._metrics_class(
|
102
|
-
**(
|
103
|
-
self._metrics_settings.init_args
|
104
|
-
| {"fixed_tags": self._metrics_settings.fixed_tags}
|
105
|
-
)
|
106
|
-
)
|
103
|
+
return self._metrics_class(**init_args)
|
@@ -74,7 +74,7 @@ class BaselineAlgorithm(NexusObject[TPayload, AlgorithmResult]):
|
|
74
74
|
"""
|
75
75
|
|
76
76
|
@run_time_metrics_async(
|
77
|
-
metric_name="
|
77
|
+
metric_name="algorithm_run",
|
78
78
|
on_finish_message_template="Finished running {algorithm} in {elapsed:.2f}s seconds",
|
79
79
|
template_args={
|
80
80
|
"algorithm": self.__class__.alias().upper(),
|
@@ -92,7 +92,7 @@ class RemoteAlgorithm(NexusObject[TPayload, AlgorithmResult]):
|
|
92
92
|
"""
|
93
93
|
|
94
94
|
@run_time_metrics_async(
|
95
|
-
metric_name="
|
95
|
+
metric_name="algorithm_run",
|
96
96
|
on_finish_message_template="Launched a new remote {algorithm} in {elapsed:.2f}s seconds",
|
97
97
|
template_args={
|
98
98
|
"algorithm": self.__class__.alias().upper(),
|
@@ -131,7 +131,7 @@ class ForkedAlgorithm(NexusObject[TPayload, AlgorithmResult]):
|
|
131
131
|
"""
|
132
132
|
|
133
133
|
@run_time_metrics_async(
|
134
|
-
metric_name="
|
134
|
+
metric_name="algorithm_run",
|
135
135
|
on_finish_message_template="Finished running algorithm {algorithm} in {elapsed:.2f}s seconds",
|
136
136
|
template_args={
|
137
137
|
"algorithm": self.__class__.alias().upper(),
|
@@ -28,6 +28,7 @@ from typing import final, Type, Optional, Callable
|
|
28
28
|
import backoff
|
29
29
|
import urllib3.exceptions
|
30
30
|
from adapta.logs import LoggerInterface
|
31
|
+
from adapta.metrics import MetricsProvider
|
31
32
|
from adapta.process_communication import DataSocket
|
32
33
|
from adapta.storage.blob.base import StorageClient
|
33
34
|
from adapta.storage.query_enabled_store import QueryEnabledStore
|
@@ -387,11 +388,13 @@ class Nexus:
|
|
387
388
|
metrics_provider = MetricsProviderFactory(
|
388
389
|
global_tags=metric_tags,
|
389
390
|
).create_provider()
|
391
|
+
|
390
392
|
self._injector.binder.bind(
|
391
|
-
|
393
|
+
MetricsProvider,
|
392
394
|
to=metrics_provider,
|
393
395
|
scope=singleton,
|
394
396
|
)
|
397
|
+
|
395
398
|
except BaseException as ex: # pylint: disable=broad-except
|
396
399
|
bootstrap_logger.error("Error reading algorithm payload", ex)
|
397
400
|
|
@@ -412,7 +415,7 @@ class Nexus:
|
|
412
415
|
|
413
416
|
root_logger.info(
|
414
417
|
"Running algorithm {algorithm} on Nexus version {version}",
|
415
|
-
algorithm=algorithm.__class__.
|
418
|
+
algorithm=algorithm.__class__.alias().upper(),
|
416
419
|
version=__version__,
|
417
420
|
)
|
418
421
|
|
@@ -431,7 +434,7 @@ class Nexus:
|
|
431
434
|
root_logger.error(
|
432
435
|
"Algorithm {algorithm} run failed on Nexus version {version}",
|
433
436
|
ex,
|
434
|
-
algorithm=algorithm.__class__.
|
437
|
+
algorithm=algorithm.__class__.alias().upper(),
|
435
438
|
version=__version__,
|
436
439
|
)
|
437
440
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
esd_services_api_client/__init__.py,sha256=4LskDwFuAFMOjHtN3_-71G_VZ4MNfjMJ7wX2cHYxV-0,648
|
2
|
-
esd_services_api_client/_version.py,sha256=
|
2
|
+
esd_services_api_client/_version.py,sha256=U1Ia6qUNjiAVWQwygC_bds7qSIvolOoxiOD36JLBt5o,33
|
3
3
|
esd_services_api_client/beast/__init__.py,sha256=zNhXcHSP5w4P9quM1XP4oXVJEccvC_VScG41TZ0GzZ8,723
|
4
4
|
esd_services_api_client/beast/v3/__init__.py,sha256=FtumtInoDyCCRE424Llqv8QZLRuwXzj-smyfu1od1nc,754
|
5
5
|
esd_services_api_client/beast/v3/_connector.py,sha256=VqxiCzJWKERh42aZAIphzmOEG5cdOcKM0DQzG7eQ_-8,11479
|
@@ -21,20 +21,20 @@ esd_services_api_client/nexus/abstractions/__init__.py,sha256=sOgKKq3_LZGbLmQMtM
|
|
21
21
|
esd_services_api_client/nexus/abstractions/algrorithm_cache.py,sha256=6GevJJ7mf1c_PImhKQ_4_6n652VyHlgK_12LNidirxs,3644
|
22
22
|
esd_services_api_client/nexus/abstractions/input_object.py,sha256=RUKnhekuZwd_RVvnLGAxHa4wYDFJf6wEwWQI9f-o0lM,1761
|
23
23
|
esd_services_api_client/nexus/abstractions/logger_factory.py,sha256=oJStrOPir8J18E3ALhUTCQrj3rbjo2yuYrnjpDwLQg8,3947
|
24
|
-
esd_services_api_client/nexus/abstractions/metrics_provider_factory.py,sha256=
|
24
|
+
esd_services_api_client/nexus/abstractions/metrics_provider_factory.py,sha256=PtFTu6MzKVVdKFdZoL6xMsEMaVKEdNIKEVhv9ZVjCZA,3211
|
25
25
|
esd_services_api_client/nexus/abstractions/nexus_object.py,sha256=rLE42imCVGE6Px4Yu6X6C4b69gA1grK-7Md_SuCLN2Q,3115
|
26
26
|
esd_services_api_client/nexus/abstractions/socket_provider.py,sha256=Rwa_aPErI4Es5AdyCd3EoGze7mg2D70u8kuc2UGEBaI,1729
|
27
27
|
esd_services_api_client/nexus/algorithms/__init__.py,sha256=v4rPDf36r6AaHi_3K8isBKYU_fG8ct3w14KpUg2XRgg,976
|
28
|
-
esd_services_api_client/nexus/algorithms/_baseline_algorithm.py,sha256=
|
29
|
-
esd_services_api_client/nexus/algorithms/_remote_algorithm.py,sha256=
|
28
|
+
esd_services_api_client/nexus/algorithms/_baseline_algorithm.py,sha256=79O6Mwav1AkpjOuE19CH253W3pAlcgZjoh1sJTlDxmQ,2948
|
29
|
+
esd_services_api_client/nexus/algorithms/_remote_algorithm.py,sha256=K59u8mTxQ4LoVDVpHin1rEca0zTO2XFXYRS60jiCAGI,3963
|
30
30
|
esd_services_api_client/nexus/algorithms/distributed.py,sha256=vkKSCsd480RKwrtu3uZ2iU1bh593fkgBcOBrcb9cLjA,1702
|
31
|
-
esd_services_api_client/nexus/algorithms/forked_algorithm.py,sha256=
|
31
|
+
esd_services_api_client/nexus/algorithms/forked_algorithm.py,sha256=ed1zYNKxPKPEp7LETNTDVzRYkOImTR4DIBLwFPRaaRE,5874
|
32
32
|
esd_services_api_client/nexus/algorithms/minimalistic.py,sha256=tSYXodIW-_Aje-_ZyYUoWAThcZIeE4_kMvMINsT4Lb8,1644
|
33
33
|
esd_services_api_client/nexus/algorithms/recursive.py,sha256=uaCCl4q-st_KqbcmkdOJedJ0nAjbJvn6jdZEdW0_0ss,2007
|
34
34
|
esd_services_api_client/nexus/configurations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
35
|
esd_services_api_client/nexus/configurations/algorithm_configuration.py,sha256=eE7diX2PATCGkmqhvFOcZwXrr6vns4fqnJGmgNvhhZM,1091
|
36
36
|
esd_services_api_client/nexus/core/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
|
37
|
-
esd_services_api_client/nexus/core/app_core.py,sha256=
|
37
|
+
esd_services_api_client/nexus/core/app_core.py,sha256=md1iyO61ZexYcNXVm3LoU9FEj4aCbkgf_O9zwQxyZeA,17284
|
38
38
|
esd_services_api_client/nexus/core/app_dependencies.py,sha256=-s_jtEdw25Jef6dMCtIqfIQnAPmzP7fvrB1oq4GSjwA,8042
|
39
39
|
esd_services_api_client/nexus/core/serializers.py,sha256=0IfXadbR3G0mowqRQlIOP2LFjNs-P-Tr42Ia2G-ehtg,2275
|
40
40
|
esd_services_api_client/nexus/exceptions/__init__.py,sha256=feN33VdqB5-2bD9aJesJl_OlsKrNNo3hZCnQgKuaU9k,696
|
@@ -52,7 +52,7 @@ esd_services_api_client/nexus/modules/mlflow_module.py,sha256=d4y8XetGF37md4dEpE
|
|
52
52
|
esd_services_api_client/nexus/telemetry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
53
53
|
esd_services_api_client/nexus/telemetry/recorder.py,sha256=-shxk2vYDTafJ0U3CzkHxIHBQtxVJ1ZNI4ST0p1YV2g,4801
|
54
54
|
esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=E4bj0N4QDo9kSxf1XMSplCfSG29iDKg-UgrRY-nq_XE,5225
|
55
|
-
esd_services_api_client-2.6.3a155.
|
56
|
-
esd_services_api_client-2.6.3a155.
|
57
|
-
esd_services_api_client-2.6.3a155.
|
58
|
-
esd_services_api_client-2.6.3a155.
|
55
|
+
esd_services_api_client-2.6.3a155.dev19.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
|
56
|
+
esd_services_api_client-2.6.3a155.dev19.dist-info/METADATA,sha256=n27E5WE9Cpv-nKJ5-_eNOtLdztjesaqtv04OmZzvQAE,1072
|
57
|
+
esd_services_api_client-2.6.3a155.dev19.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
58
|
+
esd_services_api_client-2.6.3a155.dev19.dist-info/RECORD,,
|
File without changes
|
File without changes
|