omnata-plugin-runtime 0.8.0a194__tar.gz → 0.8.0a196__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/src/omnata_plugin_runtime/configuration.py +1 -4
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/src/omnata_plugin_runtime/logging.py +1 -0
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/src/omnata_plugin_runtime/omnata_plugin.py +1 -3
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/src/omnata_plugin_runtime/plugin_entrypoints.py +1 -2
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/src/omnata_plugin_runtime/rate_limiting.py +1 -4
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/LICENSE +0 -0
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/README.md +0 -0
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/src/omnata_plugin_runtime/forms.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "omnata-plugin-runtime"
|
3
|
-
version = "0.8.0-
|
3
|
+
version = "0.8.0-a196"
|
4
4
|
description = "Classes and common runtime components for building and running Omnata Plugins"
|
5
5
|
authors = ["James Weakley <james.weakley@omnata.com>"]
|
6
6
|
readme = "README.md"
|
@@ -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"
|
@@ -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
|
"""
|
@@ -15,13 +15,10 @@ import logging
|
|
15
15
|
from pydantic import Field, root_validator, PrivateAttr, field_serializer
|
16
16
|
from pydantic_core import to_jsonable_python
|
17
17
|
from .configuration import SubscriptableBaseModel
|
18
|
-
from .logging import logger
|
18
|
+
from .logging import logger, tracer
|
19
19
|
import pytz
|
20
20
|
from requests.adapters import HTTPAdapter
|
21
21
|
from urllib3.util.retry import Retry
|
22
|
-
from opentelemetry import trace
|
23
|
-
|
24
|
-
tracer = trace.get_tracer(__name__)
|
25
22
|
|
26
23
|
TimeUnitType = Literal["second", "minute", "hour", "day"]
|
27
24
|
|
File without changes
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.8.0a194 → omnata_plugin_runtime-0.8.0a196}/src/omnata_plugin_runtime/api.py
RENAMED
File without changes
|
File without changes
|