mirror of
https://github.com/karakeep-app/karakeep.git
synced 2026-02-28 18:25:55 +01:00
* feat: add OpenTelemetry tracing infrastructure Introduce distributed tracing capabilities using OpenTelemetry: - Add @opentelemetry packages to shared-server for tracing - Create tracing utility module with span helpers (withSpan, addSpanEvent, etc.) - Add tRPC middleware for automatic span creation on API calls - Initialize tracing in API and workers entry points - Add demo instrumentation to bookmark creation and crawler worker - Add configuration options (OTEL_TRACING_ENABLED, OTEL_EXPORTER_OTLP_ENDPOINT, etc.) - Document tracing configuration in environment variables docs When enabled, traces are collected for tRPC calls, bookmark creation flow, and crawler operations, with support for any OTLP-compatible backend (Jaeger, Tempo, etc.) * refactor: remove tracing from workers for now Keep tracing infrastructure but remove worker instrumentation: - Remove tracing initialization from workers entry point - Remove tracing instrumentation from crawler worker - Fix formatting in tracing files The tracing infrastructure remains available for future use. * add hono and next tracing * remove extra span logging * more fixes * update config * some fixes * upgrade packages * remove unneeded packages --------- Co-authored-by: Claude <noreply@anthropic.com>
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://json.schemastore.org/package.json",
|
|
"name": "@karakeep/api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"format": "prettier . --cache --ignore-path ../../.prettierignore --check",
|
|
"format:fix": "prettier . --cache --write --ignore-path ../../.prettierignore",
|
|
"lint": "oxlint .",
|
|
"lint:fix": "oxlint . --fix",
|
|
"test": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@hono/otel": "^1.1.0",
|
|
"@hono/prometheus": "^1.0.2",
|
|
"@hono/trpc-server": "^0.4.0",
|
|
"@hono/zod-validator": "^0.5.0",
|
|
"@karakeep/db": "workspace:*",
|
|
"@karakeep/shared": "workspace:*",
|
|
"@karakeep/shared-server": "workspace:*",
|
|
"@karakeep/trpc": "workspace:*",
|
|
"@trpc/server": "^11.4.3",
|
|
"drizzle-orm": "^0.44.2",
|
|
"file-type": "^21.2.0",
|
|
"hono": "^4.10.6",
|
|
"prom-client": "^15.1.3",
|
|
"rss": "^1.2.2",
|
|
"zod": "^3.24.2"
|
|
},
|
|
"devDependencies": {
|
|
"@karakeep/prettier-config": "workspace:^0.1.0",
|
|
"@karakeep/tsconfig": "workspace:^0.1.0",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/deep-equal": "^1.0.4",
|
|
"@types/rss": "^0.0.32",
|
|
"vite-tsconfig-paths": "^4.3.1",
|
|
"vitest": "^3.2.4"
|
|
},
|
|
"prettier": "@karakeep/prettier-config"
|
|
}
|