observability_registry
Class info¶
Classes¶
Name | Children | Inherits |
---|---|---|
AgentOpsProviderConfig llmling_agent.models.observability Configuration for AgentOps provider. |
||
ArizePhoenixProviderConfig llmling_agent.models.observability Configuration for Arize Phoenix provider. |
||
BaseObservabilityProviderConfig llmling_agent.models.observability Base configuration for observability providers. |
||
BraintrustProviderConfig llmling_agent.models.observability Configuration for Braintrust provider. |
||
LangsmithProviderConfig llmling_agent.models.observability Configuration for Langsmith provider. |
||
LogfireProviderConfig llmling_agent.models.observability Configuration for Logfire provider. |
||
MlFlowProviderConfig llmling_agent.models.observability Configuration for MlFlow provider. |
||
ObservabilityConfig llmling_agent.models.observability Global observability configuration. |
||
ObservabilityRegistry llmling_agent.observability.observability_registry Registry for pending decorations and provider configuration. |
||
TraceloopProviderConfig llmling_agent.models.observability Configuration for Traceloop provider. |
||
TrackedDecoration llmling_agent.observability.observability_registry Registration of an item (callable / class) that needs observability tracking. |
🛈 DocStrings¶
ObservabilityRegistry
¶
Registry for pending decorations and provider configuration.
Source code in src/llmling_agent/observability/observability_registry.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|
configure_provider
¶
configure_provider(provider: ObservabilityProvider) -> None
Configure a new provider and apply tracking to all registered items.
When a new provider is configured, it will: 1. Get added to the list of active providers 2. Apply its tracking to all previously registered functions/tools/agents 3. Be available for immediate tracking of new registrations
The registry maintains a permanent list of what needs tracking, collected through decorators at import time. Each provider uses these registrations to know what to track.
Source code in src/llmling_agent/observability/observability_registry.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
|
register_action
¶
Register a function for action tracking.
Source code in src/llmling_agent/observability/observability_registry.py
77 78 79 80 81 82 83 84 85 86 |
|
register_agent
¶
Register a class for agent tracking.
Source code in src/llmling_agent/observability/observability_registry.py
57 58 59 60 61 62 63 64 65 |
|
register_providers
¶
register_providers(observability_config: ObservabilityConfig) -> None
Register and configure all observability providers.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
observability_config
|
ObservabilityConfig
|
Configuration for observability providers |
required |
Source code in src/llmling_agent/observability/observability_registry.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|
register_tool
¶
Register a function for tool tracking.
Source code in src/llmling_agent/observability/observability_registry.py
67 68 69 70 71 72 73 74 75 |
|
TrackedDecoration
dataclass
¶
Registration of an item (callable / class) that needs observability tracking.
These registrations are permanent and collected at import time through decorators. Each new provider will use these registrations to apply its tracking.
The system is a bit more "sophisticated" because everything is working lazily in order to not having to import the observability platforms (and thus, also the AI libraries) on library loading.
Source code in src/llmling_agent/observability/observability_registry.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|