omnata-plugin-runtime 0.8.0a194__py3-none-any.whl → 0.8.0a195__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ from enum import Enum
11
11
 
12
12
  from abc import ABC
13
13
  from pydantic import BaseModel, Field, PrivateAttr, SerializationInfo, TypeAdapter, field_validator, model_serializer, validator # pylint: disable=no-name-in-module
14
- from .logging import logger
14
+ from .logging import logger, tracer
15
15
 
16
16
  if tuple(sys.version_info[:2]) >= (3, 9):
17
17
  # Python 3.9 and above
@@ -19,9 +19,6 @@ if tuple(sys.version_info[:2]) >= (3, 9):
19
19
  else:
20
20
  # Python 3.8 and below
21
21
  from typing_extensions import Annotated
22
- from opentelemetry import trace
23
-
24
- tracer = trace.get_tracer(__name__)
25
22
 
26
23
  class MapperType(str, Enum):
27
24
  FIELD_MAPPING_SELECTOR = "field_mapping_selector"
@@ -11,6 +11,7 @@ from pydantic import ValidationError
11
11
  from snowflake import telemetry
12
12
  from opentelemetry import trace
13
13
 
14
+ tracer = trace.get_tracer('omnata_plugin_runtime')
14
15
 
15
16
  class CustomLoggerAdapter(logging.LoggerAdapter):
16
17
  """
@@ -47,7 +47,7 @@ from snowflake.snowpark import Session
47
47
  from snowflake.snowpark.functions import col
48
48
  from tenacity import Retrying, stop_after_attempt, wait_fixed, retry_if_exception_message
49
49
 
50
- from .logging import OmnataPluginLogHandler, logger
50
+ from .logging import OmnataPluginLogHandler, logger, tracer
51
51
 
52
52
  from .api import (
53
53
  PluginMessage,
@@ -87,8 +87,6 @@ from .rate_limiting import (
87
87
  RateLimitState,
88
88
  RateLimitedSession
89
89
  )
90
- from opentelemetry import trace
91
- tracer = trace.get_tracer('omnata_plugin_runtime')
92
90
 
93
91
  SortDirectionType = Literal["asc", "desc"]
94
92
 
@@ -24,7 +24,7 @@ from .configuration import (
24
24
  ConnectivityOption
25
25
  )
26
26
  from .forms import ConnectionMethod, FormInputField, FormOption
27
- from .logging import OmnataPluginLogHandler, logger
27
+ from .logging import OmnataPluginLogHandler, logger, tracer
28
28
  from .omnata_plugin import (
29
29
  SnowflakeBillingEvent,
30
30
  BillingEventRequest,
@@ -39,7 +39,6 @@ from .rate_limiting import ApiLimits, RateLimitState
39
39
  from opentelemetry import trace
40
40
 
41
41
  IMPORT_DIRECTORY_NAME = "snowflake_import_directory"
42
- tracer = trace.get_tracer('omnata_plugin_runtime')
43
42
 
44
43
  class PluginEntrypoint:
45
44
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.8.0a194
3
+ Version: 0.8.0a195
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -0,0 +1,12 @@
1
+ omnata_plugin_runtime/__init__.py,sha256=MS9d1whnfT_B3-ThqZ7l63QeC_8OEKTuaYV5wTwRpBA,1576
2
+ omnata_plugin_runtime/api.py,sha256=tVi4KLL0v5N3yz3Ie0kSyFemryu572gCbtSRfWN6wBU,6523
3
+ omnata_plugin_runtime/configuration.py,sha256=6JmgE4SL3F5cGlDYqt17A1vTFu6nB74yWgEpQ5qV9ho,38380
4
+ omnata_plugin_runtime/forms.py,sha256=ueodN2GIMS5N9fqebpY4uNGJnjEb9HcuaVQVfWH-cGg,19838
5
+ omnata_plugin_runtime/logging.py,sha256=WBuZt8lF9E5oFWM4KYQbE8dDJ_HctJ1pN3BHwU6rcd0,4461
6
+ omnata_plugin_runtime/omnata_plugin.py,sha256=ZMoF5ef9GT0ri8nof_3JaJT4dTQ9oDRf22zw-5UryjI,130600
7
+ omnata_plugin_runtime/plugin_entrypoints.py,sha256=3nqIWOlUdNVkBu7YBqC73Gb5G_xvMUzmlZf838N0JSg,32728
8
+ omnata_plugin_runtime/rate_limiting.py,sha256=6fn_h2vxcHbqqiW-OZ6FKfNYv_XlNvorsrCknVce2PA,25929
9
+ omnata_plugin_runtime-0.8.0a195.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
10
+ omnata_plugin_runtime-0.8.0a195.dist-info/METADATA,sha256=JW6TXPXIu60cr3BLAydTSegpjml5vFKFJQuRWZbmP8M,2148
11
+ omnata_plugin_runtime-0.8.0a195.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
12
+ omnata_plugin_runtime-0.8.0a195.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- omnata_plugin_runtime/__init__.py,sha256=MS9d1whnfT_B3-ThqZ7l63QeC_8OEKTuaYV5wTwRpBA,1576
2
- omnata_plugin_runtime/api.py,sha256=tVi4KLL0v5N3yz3Ie0kSyFemryu572gCbtSRfWN6wBU,6523
3
- omnata_plugin_runtime/configuration.py,sha256=uMGMqKYy4XmntX1ROungUwTJXeY2ciczAb_PtRCFZZI,38441
4
- omnata_plugin_runtime/forms.py,sha256=ueodN2GIMS5N9fqebpY4uNGJnjEb9HcuaVQVfWH-cGg,19838
5
- omnata_plugin_runtime/logging.py,sha256=-8BqjgIOhmAFlHz0U_n4YPPme_YvjXyFDjtpbkbS9c8,4410
6
- omnata_plugin_runtime/omnata_plugin.py,sha256=FRm5RdI-wzgnXdptV8a-OLTPTg4iyvkCmpwrkANBgpI,130675
7
- omnata_plugin_runtime/plugin_entrypoints.py,sha256=rpRR-55qMdJ_duf91uvp7jDqMXgUuGx4L1ho8eHwaYM,32771
8
- omnata_plugin_runtime/rate_limiting.py,sha256=6fn_h2vxcHbqqiW-OZ6FKfNYv_XlNvorsrCknVce2PA,25929
9
- omnata_plugin_runtime-0.8.0a194.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
10
- omnata_plugin_runtime-0.8.0a194.dist-info/METADATA,sha256=dVxPOxdZtf_cXevhgoLSGJv5QU9SjO2wIgDyIyr_giI,2148
11
- omnata_plugin_runtime-0.8.0a194.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
12
- omnata_plugin_runtime-0.8.0a194.dist-info/RECORD,,