clue-python-sdk-core 0.0.1__py3-none-any.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.
- clue_python_sdk_core/__init__.py +135 -0
- clue_python_sdk_core/adapters.py +2177 -0
- clue_python_sdk_core/bootstrap.py +166 -0
- clue_python_sdk_core/celery.py +734 -0
- clue_python_sdk_core/client.py +335 -0
- clue_python_sdk_core/contracts.py +224 -0
- clue_python_sdk_core/event_size.py +96 -0
- clue_python_sdk_core/http_extraction.py +146 -0
- clue_python_sdk_core/orm.py +534 -0
- clue_python_sdk_core/otel_bridge.py +164 -0
- clue_python_sdk_core/parameter_snapshot.py +152 -0
- clue_python_sdk_core/privacy.py +124 -0
- clue_python_sdk_core/requests_instrumentation.py +341 -0
- clue_python_sdk_core/resources.py +44 -0
- clue_python_sdk_core/runtime.py +894 -0
- clue_python_sdk_core-0.0.1.dist-info/METADATA +11 -0
- clue_python_sdk_core-0.0.1.dist-info/RECORD +19 -0
- clue_python_sdk_core-0.0.1.dist-info/WHEEL +5 -0
- clue_python_sdk_core-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
from .adapters import (
|
|
2
|
+
JsonValue,
|
|
3
|
+
build_backend_context,
|
|
4
|
+
build_backend_envelope,
|
|
5
|
+
build_backend_error_event,
|
|
6
|
+
build_custom_event,
|
|
7
|
+
build_identity_identified_event,
|
|
8
|
+
build_account_associated_event,
|
|
9
|
+
build_identity_logged_out_event,
|
|
10
|
+
build_sdk_diagnostic_event,
|
|
11
|
+
build_summary_event,
|
|
12
|
+
build_request_failed_event,
|
|
13
|
+
build_request_finished_event,
|
|
14
|
+
build_request_started_event,
|
|
15
|
+
build_celery_job_event,
|
|
16
|
+
build_domain_command_event,
|
|
17
|
+
build_outbound_request_failed_event,
|
|
18
|
+
build_outbound_request_finished_event,
|
|
19
|
+
build_outbound_request_started_event,
|
|
20
|
+
build_repository_mutation_event,
|
|
21
|
+
build_state_transition_event,
|
|
22
|
+
build_tool_call_event,
|
|
23
|
+
to_path_template,
|
|
24
|
+
)
|
|
25
|
+
from .bootstrap import (
|
|
26
|
+
CluePythonBootstrapConfig,
|
|
27
|
+
build_otel_environment,
|
|
28
|
+
configure_opentelemetry_environment,
|
|
29
|
+
default_traces_endpoint_from_ingest_endpoint,
|
|
30
|
+
initialize_opentelemetry,
|
|
31
|
+
load_bootstrap_config,
|
|
32
|
+
)
|
|
33
|
+
from .celery import instrument_celery_signals
|
|
34
|
+
from .client import CluePythonClient
|
|
35
|
+
from .orm import instrument_django_orm, instrument_sqlalchemy_orm
|
|
36
|
+
from .privacy import (
|
|
37
|
+
DEFAULT_DENIED_KEYS,
|
|
38
|
+
build_mask_token,
|
|
39
|
+
safe_sanitize_object,
|
|
40
|
+
)
|
|
41
|
+
from .requests_instrumentation import instrument_requests, reset_requests_instrumentation
|
|
42
|
+
from .resources import (
|
|
43
|
+
CluePythonResourceConfig,
|
|
44
|
+
build_resource_attributes,
|
|
45
|
+
serialize_resource_attributes,
|
|
46
|
+
)
|
|
47
|
+
from .runtime import (
|
|
48
|
+
ClueIdentify,
|
|
49
|
+
ClueCommand,
|
|
50
|
+
ClueLogout,
|
|
51
|
+
CluePythonSettings,
|
|
52
|
+
ClueSetAccount,
|
|
53
|
+
ClueStateTransition,
|
|
54
|
+
ClueToolCall,
|
|
55
|
+
ClueTrack,
|
|
56
|
+
add_event,
|
|
57
|
+
annotate_current_otel_span,
|
|
58
|
+
build_internal_diagnostic_event,
|
|
59
|
+
create_client,
|
|
60
|
+
create_request_context,
|
|
61
|
+
enqueue_client_events,
|
|
62
|
+
emit_sdk_initialized,
|
|
63
|
+
flush_client,
|
|
64
|
+
flush_shared_clients,
|
|
65
|
+
get_current_client,
|
|
66
|
+
get_current_context,
|
|
67
|
+
load_settings,
|
|
68
|
+
reset_current_state,
|
|
69
|
+
set_current_state,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
__all__ = [
|
|
73
|
+
"CluePythonBootstrapConfig",
|
|
74
|
+
"CluePythonClient",
|
|
75
|
+
"CluePythonResourceConfig",
|
|
76
|
+
"CluePythonSettings",
|
|
77
|
+
"ClueIdentify",
|
|
78
|
+
"ClueCommand",
|
|
79
|
+
"ClueLogout",
|
|
80
|
+
"ClueSetAccount",
|
|
81
|
+
"ClueStateTransition",
|
|
82
|
+
"ClueToolCall",
|
|
83
|
+
"ClueTrack",
|
|
84
|
+
"DEFAULT_DENIED_KEYS",
|
|
85
|
+
"JsonValue",
|
|
86
|
+
"add_event",
|
|
87
|
+
"annotate_current_otel_span",
|
|
88
|
+
"build_backend_context",
|
|
89
|
+
"build_backend_envelope",
|
|
90
|
+
"build_backend_error_event",
|
|
91
|
+
"build_custom_event",
|
|
92
|
+
"build_identity_identified_event",
|
|
93
|
+
"build_account_associated_event",
|
|
94
|
+
"build_identity_logged_out_event",
|
|
95
|
+
"build_internal_diagnostic_event",
|
|
96
|
+
"build_request_failed_event",
|
|
97
|
+
"build_request_finished_event",
|
|
98
|
+
"build_request_started_event",
|
|
99
|
+
"build_celery_job_event",
|
|
100
|
+
"build_domain_command_event",
|
|
101
|
+
"build_mask_token",
|
|
102
|
+
"build_otel_environment",
|
|
103
|
+
"build_outbound_request_failed_event",
|
|
104
|
+
"build_outbound_request_finished_event",
|
|
105
|
+
"build_outbound_request_started_event",
|
|
106
|
+
"build_repository_mutation_event",
|
|
107
|
+
"build_state_transition_event",
|
|
108
|
+
"build_tool_call_event",
|
|
109
|
+
"build_resource_attributes",
|
|
110
|
+
"build_sdk_diagnostic_event",
|
|
111
|
+
"build_summary_event",
|
|
112
|
+
"configure_opentelemetry_environment",
|
|
113
|
+
"default_traces_endpoint_from_ingest_endpoint",
|
|
114
|
+
"create_client",
|
|
115
|
+
"create_request_context",
|
|
116
|
+
"enqueue_client_events",
|
|
117
|
+
"emit_sdk_initialized",
|
|
118
|
+
"flush_client",
|
|
119
|
+
"flush_shared_clients",
|
|
120
|
+
"get_current_client",
|
|
121
|
+
"get_current_context",
|
|
122
|
+
"instrument_celery_signals",
|
|
123
|
+
"instrument_django_orm",
|
|
124
|
+
"instrument_requests",
|
|
125
|
+
"instrument_sqlalchemy_orm",
|
|
126
|
+
"initialize_opentelemetry",
|
|
127
|
+
"load_bootstrap_config",
|
|
128
|
+
"load_settings",
|
|
129
|
+
"reset_current_state",
|
|
130
|
+
"reset_requests_instrumentation",
|
|
131
|
+
"safe_sanitize_object",
|
|
132
|
+
"serialize_resource_attributes",
|
|
133
|
+
"set_current_state",
|
|
134
|
+
"to_path_template",
|
|
135
|
+
]
|