From f849ad675e6ac3112c4aff120959a522d1830bbf Mon Sep 17 00:00:00 2001 From: Aleksei Fedorov Date: Mon, 4 May 2026 20:58:48 +0000 Subject: [PATCH] sntr --- kernel_ai/api/rest.py | 2 ++ kernel_ai/config.py | 2 ++ kernel_ai/http/api.py | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/kernel_ai/api/rest.py b/kernel_ai/api/rest.py index 40592a6..7bba879 100644 --- a/kernel_ai/api/rest.py +++ b/kernel_ai/api/rest.py @@ -23,6 +23,7 @@ ("/ipc-links", "get_ipc_links", h.get_ipc_links, None), ("/proc-matrix", "get_proc_matrix", h.get_proc_matrix, None), ("/proc-timeline", "get_proc_timeline", h.get_proc_timeline, None), + ("/proc-timeline-branches", "get_proc_timeline_branches", h.get_proc_timeline_branches, None), ("/execution-context", "get_execution_context", h.get_execution_context, None), ("/kernel-dna", "kernel_dna", h.kernel_dna, None), ("/crypto-realtime", "crypto_realtime", h.crypto_realtime, None), @@ -31,6 +32,7 @@ ("/frontend-logs", "ingest_frontend_logs", h.ingest_frontend_logs, ["POST", "OPTIONS"]), ("/proc-graph", "proc_graph", h.get_proc_graph, None), ("/process-files", "process_files", h.get_process_files, None), + ("/sentry-test", "sentry_test", h.sentry_test, ["POST"]), ] for rule, endpoint, view_func, methods in _API_ROUTES: diff --git a/kernel_ai/config.py b/kernel_ai/config.py index 7bb3682..8e1990e 100644 --- a/kernel_ai/config.py +++ b/kernel_ai/config.py @@ -24,3 +24,5 @@ class Config: SENTRY_RELEASE = os.getenv("SENTRY_RELEASE", "").strip() or None SENTRY_SEND_DEFAULT_PII = os.getenv("SENTRY_SEND_DEFAULT_PII", "false").lower() == "true" SENTRY_TRACES_SAMPLE_RATE = float(os.getenv("SENTRY_TRACES_SAMPLE_RATE", "0.0")) + SENTRY_TEST_ENDPOINT_ENABLED = os.getenv("SENTRY_TEST_ENDPOINT_ENABLED", "false").lower() == "true" + SENTRY_TEST_ENDPOINT_TOKEN = os.getenv("SENTRY_TEST_ENDPOINT_TOKEN", "").strip() diff --git a/kernel_ai/http/api.py b/kernel_ai/http/api.py index daad9d2..42c26f4 100644 --- a/kernel_ai/http/api.py +++ b/kernel_ai/http/api.py @@ -6,6 +6,7 @@ kernel_dna, nginx_files, process_kernel_map, + sentry_test, syscalls_realtime, ) from kernel_ai.http.api_handlers.network_system import ( @@ -21,6 +22,7 @@ get_proc_graph, get_proc_matrix, get_proc_timeline, + get_proc_timeline_branches, get_process_cpu, get_process_fds, get_process_files, @@ -45,6 +47,7 @@ "get_proc_graph", "get_proc_matrix", "get_proc_timeline", + "get_proc_timeline_branches", "get_process_cpu", "get_process_fds", "get_process_files", @@ -61,6 +64,7 @@ "process_kernel_map", "processes_realtime", "security_realtime", + "sentry_test", "syscalls_realtime", "traceroute_info", ]