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>
36 lines
1.1 KiB
JSON
36 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://json.schemastore.org/package.json",
|
|
"name": "@karakeep/shared-server",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@karakeep/db": "workspace:^0.1.0",
|
|
"@karakeep/plugins": "workspace:^0.1.0",
|
|
"@karakeep/shared": "workspace:^0.1.0",
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"@opentelemetry/exporter-trace-otlp-http": "^0.208.0",
|
|
"@opentelemetry/resources": "^2.2.0",
|
|
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
"@opentelemetry/sdk-trace-node": "^2.2.0",
|
|
"@opentelemetry/semantic-conventions": "^1.38.0"
|
|
},
|
|
"devDependencies": {
|
|
"@karakeep/prettier-config": "workspace:^0.1.0",
|
|
"@karakeep/tsconfig": "workspace:^0.1.0"
|
|
},
|
|
"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"
|
|
},
|
|
"main": "index.ts",
|
|
"exports": {
|
|
".": "./index.ts"
|
|
},
|
|
"prettier": "@karakeep/prettier-config"
|
|
}
|