gl-observability-binary 0.1.1__cp312-cp312-win_amd64.whl → 0.1.2__cp312-cp312-win_amd64.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.
- gl_observability/initializer.pyi +4 -1
- gl_observability/traces/config.pyi +3 -1
- gl_observability.cp312-win_amd64.pyd +0 -0
- gl_observability.pyi +1 -0
- {gl_observability_binary-0.1.1.dist-info → gl_observability_binary-0.1.2.dist-info}/METADATA +2 -1
- {gl_observability_binary-0.1.1.dist-info → gl_observability_binary-0.1.2.dist-info}/RECORD +8 -8
- {gl_observability_binary-0.1.1.dist-info → gl_observability_binary-0.1.2.dist-info}/WHEEL +0 -0
- {gl_observability_binary-0.1.1.dist-info → gl_observability_binary-0.1.2.dist-info}/top_level.txt +0 -0
gl_observability/initializer.pyi
CHANGED
|
@@ -15,8 +15,9 @@ class TelemetryConfig:
|
|
|
15
15
|
use_langchain: Incomplete
|
|
16
16
|
use_httpx: Incomplete
|
|
17
17
|
use_requests: Incomplete
|
|
18
|
+
log_trace_context: Incomplete
|
|
18
19
|
backend_config: Incomplete
|
|
19
|
-
def __init__(self, *, attributes: dict[str, str] | None = None, trace_sampler: Sampler | None = None, fastapi_config: FastAPIConfig | None = None, use_langchain: bool = False, use_httpx: bool = True, use_requests: bool = True, backend_config: OpenTelemetryBackendConfig | SentryBackendConfig | None = None) -> None:
|
|
20
|
+
def __init__(self, *, attributes: dict[str, str] | None = None, trace_sampler: Sampler | None = None, fastapi_config: FastAPIConfig | None = None, use_langchain: bool = False, use_httpx: bool = True, use_requests: bool = True, log_trace_context: bool = True, backend_config: OpenTelemetryBackendConfig | SentryBackendConfig | None = None) -> None:
|
|
20
21
|
"""Initialize the telemetry configuration.
|
|
21
22
|
|
|
22
23
|
Args:
|
|
@@ -27,6 +28,8 @@ class TelemetryConfig:
|
|
|
27
28
|
use_langchain (bool, optional): Enable Langchain instrumentation. Defaults to False.
|
|
28
29
|
use_httpx (bool, optional): Enable HTTPX instrumentation. Defaults to True.
|
|
29
30
|
use_requests (bool, optional): Enable Requests instrumentation. Defaults to True.
|
|
31
|
+
log_trace_context (bool, optional): Add trace context to logs. You have to set the formatter to
|
|
32
|
+
include the trace context. Defaults to True.
|
|
30
33
|
backend_config (OpenTelemetryBackendConfig | SentryBackendConfig | None, optional): The telemetry
|
|
31
34
|
backend configuration. Defaults to None. Make sure to set at least one backend configuration,
|
|
32
35
|
if not traces will not be exported.
|
|
@@ -22,7 +22,8 @@ class OpenTelemetryTraceConfig:
|
|
|
22
22
|
use_langchain: Incomplete
|
|
23
23
|
use_httpx: Incomplete
|
|
24
24
|
use_requests: Incomplete
|
|
25
|
-
|
|
25
|
+
log_trace_context: Incomplete
|
|
26
|
+
def __init__(self, *, attributes: dict[str, str], trace_sampler: Sampler | None, fastapi_config: FastAPIConfig | None, use_langchain: bool, use_httpx: bool, use_requests: bool, log_trace_context: bool) -> None:
|
|
26
27
|
"""Initialize OpenTelemetry configuration.
|
|
27
28
|
|
|
28
29
|
Args:
|
|
@@ -32,6 +33,7 @@ class OpenTelemetryTraceConfig:
|
|
|
32
33
|
use_langchain (bool): Enable Langchain instrumentation.
|
|
33
34
|
use_httpx (bool): Enable HTTPX instrumentation.
|
|
34
35
|
use_requests (bool): Enable Requests instrumentation.
|
|
36
|
+
log_trace_context (bool): Add trace context to logs.
|
|
35
37
|
"""
|
|
36
38
|
|
|
37
39
|
def setup_tracer_provider(opentelemetry_config: OpenTelemetryTraceConfig):
|
|
Binary file
|
gl_observability.pyi
CHANGED
|
@@ -38,6 +38,7 @@ import opentelemetry.instrumentation
|
|
|
38
38
|
import opentelemetry.instrumentation.fastapi
|
|
39
39
|
import opentelemetry.instrumentation.httpx
|
|
40
40
|
import opentelemetry.instrumentation.langchain
|
|
41
|
+
import opentelemetry.instrumentation.logging
|
|
41
42
|
import opentelemetry.instrumentation.requests
|
|
42
43
|
import opentelemetry.sdk.resources
|
|
43
44
|
import importlib
|
{gl_observability_binary-0.1.1.dist-info → gl_observability_binary-0.1.2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: gl-observability-binary
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: SDK for Observability tools
|
|
5
5
|
Author-email: HansSeanNathanael <hans.s.nathanael@gdplabs.id>
|
|
6
6
|
Requires-Python: <3.14,>=3.11
|
|
@@ -18,6 +18,7 @@ Requires-Dist: opentelemetry-instrumentation-fastapi
|
|
|
18
18
|
Requires-Dist: opentelemetry-instrumentation-langchain
|
|
19
19
|
Requires-Dist: opentelemetry-instrumentation-requests
|
|
20
20
|
Requires-Dist: opentelemetry-instrumentation-httpx
|
|
21
|
+
Requires-Dist: opentelemetry-instrumentation-logging
|
|
21
22
|
Provides-Extra: dev
|
|
22
23
|
Requires-Dist: pytest<9.0.0,>=8.3.4; extra == "dev"
|
|
23
24
|
Requires-Dist: pre-commit<4.0.0,>=3.7.0; extra == "dev"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
gl_observability.cp312-win_amd64.pyd,sha256=
|
|
2
|
-
gl_observability.pyi,sha256=
|
|
1
|
+
gl_observability.cp312-win_amd64.pyd,sha256=iMVSDPu4MCpWPoHPuh6k6wBYCPCJPak1qmmm1R6lLKM,652288
|
|
2
|
+
gl_observability.pyi,sha256=qtuD7uFNK7X5LdTcoxlAY0XiubUVccp8sc-z7q0TQTo,1716
|
|
3
3
|
gl_observability/__init__.pyi,sha256=YvrsoNmib8ulmQtWz9yxKyHDWnsTxzLWXOiI5C-BqmM,518
|
|
4
|
-
gl_observability/initializer.pyi,sha256=
|
|
4
|
+
gl_observability/initializer.pyi,sha256=ODCDy0e1N6PySqL9-UnZhBvVqb1kKiIU2YU-Cetnr2k,3762
|
|
5
5
|
gl_observability/logs/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
gl_observability/logs/ner_pii_logger_handler.pyi,sha256=KkX_78DsEJVFqdgcrrV-sosUmIR14gKJD6JEp16YOLU,1573
|
|
7
7
|
gl_observability/logs/regex_pii_logger_handler.pyi,sha256=mN9pAOn8t3GrEjM7hldAn2HZLV8m3Ja2wY5vwWDWdAI,2538
|
|
8
8
|
gl_observability/traces/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
gl_observability/traces/config.pyi,sha256=
|
|
9
|
+
gl_observability/traces/config.pyi,sha256=GGaRNV3keMRiWYzvgUHGJEv3yeVkN-KcVKQ6AOUbaUY,2108
|
|
10
10
|
gl_observability/traces/backend/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
gl_observability/traces/backend/opentelemetry.pyi,sha256=jXsw3ZG2PnT0VWuC23yjQHaPMit3mF8m-C8LFeEBruo,1460
|
|
12
12
|
gl_observability/traces/backend/sentry.pyi,sha256=dVrmxAc5F7vZym3NQ6G7gCynuwa_TkstodEkFSvdhbs,2049
|
|
@@ -14,7 +14,7 @@ gl_observability/traces/instrument/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
|
|
|
14
14
|
gl_observability/traces/instrument/functions.pyi,sha256=Hd2CmrBF4qxjb_LEUf5jgljVJ1DKy7XiQXJzvpYTl5w,4293
|
|
15
15
|
gl_observability/traces/instrument/http.pyi,sha256=F86Nscqe9GxNdEduPJepzzjg3EeLZL-zRMUSj7tPxRg,2033
|
|
16
16
|
gl_observability.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
|
|
17
|
-
gl_observability_binary-0.1.
|
|
18
|
-
gl_observability_binary-0.1.
|
|
19
|
-
gl_observability_binary-0.1.
|
|
20
|
-
gl_observability_binary-0.1.
|
|
17
|
+
gl_observability_binary-0.1.2.dist-info/METADATA,sha256=n3leUPQyFERh3p5yUq-DJgjt9AdJCGijVvHOSAbIPWY,8313
|
|
18
|
+
gl_observability_binary-0.1.2.dist-info/WHEEL,sha256=x5rgv--I0NI0IT1Lh9tN1VG2cI637p3deednwYLKnxc,96
|
|
19
|
+
gl_observability_binary-0.1.2.dist-info/top_level.txt,sha256=qX0-e4NxRAAXXjWIZ7gvIspQP7J_dgxPQ7e3-WEbIeQ,17
|
|
20
|
+
gl_observability_binary-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
{gl_observability_binary-0.1.1.dist-info → gl_observability_binary-0.1.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|