hexkit 4.6.0__tar.gz → 4.6.1__tar.gz
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.
- {hexkit-4.6.0/src/hexkit.egg-info → hexkit-4.6.1}/PKG-INFO +1 -1
- {hexkit-4.6.0 → hexkit-4.6.1}/pyproject.toml +1 -1
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/opentelemetry_setup.py +4 -4
- {hexkit-4.6.0 → hexkit-4.6.1/src/hexkit.egg-info}/PKG-INFO +1 -1
- {hexkit-4.6.0 → hexkit-4.6.1}/LICENSE +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/MANIFEST.in +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/README.md +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/setup.cfg +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/__main__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/base.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/config.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/correlation.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/custom_types.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/log.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/protocols/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/protocols/dao.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/protocols/daopub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/protocols/daosub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/protocols/eventpub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/protocols/eventsub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/protocols/objstorage.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/akafka/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/akafka/config.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/akafka/provider/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/akafka/provider/daosub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/akafka/provider/eventpub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/akafka/provider/eventsub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/akafka/provider/utils.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/akafka/testcontainer.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/akafka/testutils.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongodb/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongodb/migrations/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongodb/migrations/_manager.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongodb/migrations/_utils.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongodb/provider.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongodb/testutils.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongokafka/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongokafka/provider/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongokafka/provider/config.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongokafka/provider/daopub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongokafka/provider/persistent_pub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/mongokafka/testutils.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/provider.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/test_files/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/test_files/test_file1.yaml +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/test_files/test_file2.yaml +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/test_files/test_file3.yaml +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/test_files/test_file4.yaml +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/testutils/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/testutils/_fixtures.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/testutils/_typical_workflow.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/s3/testutils/_utils.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/testing/__init__.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/providers/testing/eventpub.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/py.typed +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit/utils.py +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit.egg-info/SOURCES.txt +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit.egg-info/dependency_links.txt +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit.egg-info/requires.txt +0 -0
- {hexkit-4.6.0 → hexkit-4.6.1}/src/hexkit.egg-info/top_level.txt +0 -0
|
@@ -24,7 +24,7 @@ classifiers = [
|
|
|
24
24
|
"Intended Audience :: Developers",
|
|
25
25
|
]
|
|
26
26
|
name = "hexkit"
|
|
27
|
-
version = "4.6.
|
|
27
|
+
version = "4.6.1"
|
|
28
28
|
description = "A Toolkit for Building Microservices using the Hexagonal Architecture"
|
|
29
29
|
dependencies = [
|
|
30
30
|
"opentelemetry-api >=1.31.1, <2",
|
|
@@ -77,14 +77,14 @@ class OpenTelemetryConfig(BaseSettings):
|
|
|
77
77
|
"If set to false, environment variables are set that should also effectively "
|
|
78
78
|
"disable autoinstrumentation.",
|
|
79
79
|
)
|
|
80
|
-
|
|
80
|
+
otel_trace_sampling_rate: Annotated[float, Field(strict=True, ge=0, le=1)] = Field(
|
|
81
81
|
default=1.0,
|
|
82
82
|
description="Determines which proportion of spans should be sampled. "
|
|
83
83
|
"A value of 1.0 means all and is equivalent to the previous behaviour. "
|
|
84
84
|
"Setting this to 0 will result in no spans being sampled, but this does not "
|
|
85
85
|
"automatically set `enable_opentelemetry` to False.",
|
|
86
86
|
)
|
|
87
|
-
|
|
87
|
+
otel_exporter_protocol: Literal["grpc", "http/protobuf"] = Field(
|
|
88
88
|
default="http/protobuf",
|
|
89
89
|
description="Specifies which protocol should be used by exporters.",
|
|
90
90
|
)
|
|
@@ -110,7 +110,7 @@ def configure_tracer(*, service_name: str, config: OpenTelemetryConfig):
|
|
|
110
110
|
"""
|
|
111
111
|
global TRACER
|
|
112
112
|
# opentelemetry distro sets this to grpc, but in the current context http/protobuf is preferred
|
|
113
|
-
os.environ[OTEL_EXPORTER_OTLP_PROTOCOL] = config.
|
|
113
|
+
os.environ[OTEL_EXPORTER_OTLP_PROTOCOL] = config.otel_exporter_protocol
|
|
114
114
|
# Disable OpenTelemetry metrics and logs explicitly as they are not processed in the backend currently
|
|
115
115
|
# This overwrites the defaults of `otlp` set in opentelemetry distro
|
|
116
116
|
os.environ[OTEL_METRICS_EXPORTER] = "none"
|
|
@@ -131,7 +131,7 @@ def configure_tracer(*, service_name: str, config: OpenTelemetryConfig):
|
|
|
131
131
|
# across service boundaries
|
|
132
132
|
# With the default sampling rate, behaviour does not change, but this allows to
|
|
133
133
|
# introduce head sampling by adjusting a config option on the service side later on
|
|
134
|
-
sampler = ParentBasedTraceIdRatio(rate=config.
|
|
134
|
+
sampler = ParentBasedTraceIdRatio(rate=config.otel_trace_sampling_rate)
|
|
135
135
|
|
|
136
136
|
# Initialize service specific TracerProvider
|
|
137
137
|
trace_provider = TracerProvider(resource=resource, sampler=sampler)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|