omnata-plugin-runtime 0.8.0a194__tar.gz → 0.8.0a195__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.8.0-a194"
3
+ version = "0.8.0-a195"
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"
@@ -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
  """