Skip to content
Merged

sntr #109

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kernel_ai/api/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions kernel_ai/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
4 changes: 4 additions & 0 deletions kernel_ai/http/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
kernel_dna,
nginx_files,
process_kernel_map,
sentry_test,
syscalls_realtime,
)
from kernel_ai.http.api_handlers.network_system import (
Expand All @@ -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,
Expand All @@ -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",
Expand All @@ -61,6 +64,7 @@
"process_kernel_map",
"processes_realtime",
"security_realtime",
"sentry_test",
"syscalls_realtime",
"traceroute_info",
]
Expand Down
Loading