langgraph-runtime-inmem 0.31.0.dev8__tar.gz → 0.32.0.dev1__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.
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/PKG-INFO +1 -1
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/__init__.py +1 -1
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/lifespan.py +21 -17
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/.gitignore +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/Makefile +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/README.md +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/_persistence.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/checkpoint.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/database.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/inmem_stream.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/metrics.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/ops.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/queue.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/retry.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/routes.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/langgraph_runtime_inmem/store.py +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/pyproject.toml +0 -0
- {langgraph_runtime_inmem-0.31.0.dev8 → langgraph_runtime_inmem-0.32.0.dev1}/uv.lock +0 -0
|
@@ -66,15 +66,16 @@ async def lifespan(
|
|
|
66
66
|
await api_checkpointer.start_checkpointer()
|
|
67
67
|
await start_ui_bundler()
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
# OTLP metrics are always exported (Prometheus via /metrics; Datadog when a
|
|
70
|
+
# DD API key is set). The reporter no-ops if OTel deps are unavailable.
|
|
71
|
+
from langgraph_api.metrics_otlp import ( # noqa: PLC0415
|
|
72
|
+
COUNTER_SERVER_STARTED,
|
|
73
|
+
get_otlp_metrics_reporter,
|
|
74
|
+
)
|
|
74
75
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
reporter = get_otlp_metrics_reporter()
|
|
77
|
+
reporter.initialize()
|
|
78
|
+
reporter.inc_counter(COUNTER_SERVER_STARTED)
|
|
78
79
|
|
|
79
80
|
async def _log_graph_load_failure(err: graph.GraphLoadError) -> None:
|
|
80
81
|
cause = err.__cause__ or err.cause
|
|
@@ -97,6 +98,11 @@ async def lifespan(
|
|
|
97
98
|
taskgroup_name="Lifespan",
|
|
98
99
|
) as tg:
|
|
99
100
|
tg.create_task(metadata_loop())
|
|
101
|
+
from langgraph_api.metrics_collector import ( # noqa: PLC0415
|
|
102
|
+
collector_loop,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
tg.create_task(collector_loop())
|
|
100
106
|
await api_store.collect_store_from_env()
|
|
101
107
|
store_instance = await api_store.get_store()
|
|
102
108
|
if not api_store.CUSTOM_STORE:
|
|
@@ -144,16 +150,14 @@ async def lifespan(
|
|
|
144
150
|
except asyncio.CancelledError:
|
|
145
151
|
pass
|
|
146
152
|
finally:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
get_otlp_metrics_reporter,
|
|
152
|
-
)
|
|
153
|
+
from langgraph_api.metrics_otlp import ( # noqa: PLC0415
|
|
154
|
+
COUNTER_SERVER_REQUESTED_TO_STOP,
|
|
155
|
+
get_otlp_metrics_reporter,
|
|
156
|
+
)
|
|
153
157
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
158
|
+
# Shutdown has been requested; teardown is starting.
|
|
159
|
+
otlp_reporter = get_otlp_metrics_reporter()
|
|
160
|
+
otlp_reporter.inc_counter(COUNTER_SERVER_REQUESTED_TO_STOP)
|
|
157
161
|
|
|
158
162
|
await api_store.exit_store()
|
|
159
163
|
await api_checkpointer.exit_checkpointer()
|
|
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
|