Repository navigation
LVT-303: Add opt-in Cairn API and worker telemetry - #108
Draft
jackshim415 wants to merge 1 commit into
Draft
jackshim415 wants to merge 1 commit into
jackshim415 wants to merge 1 commit into
Conversation
Queue operational metadata without exposing scouting payloads or changing request and job outcomes. Pin the private SDK source and verify its checksums so each app can build without extra repository credentials.
|
🚅 Deployed to the lovat-pr-108 environment in lovat
1 service not affected by this PR
|
Contributor
📱 Connect your app to this PR deploymentScan a QR code to use this PR's Server API. Worker changes use the same API; Server URL: |
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The API and import worker currently cannot send operational metadata to Cairn. This adds opt-in request timing/status reporting for Express and worker health routes, plus lease-fenced import-attempt events. Scouting reports, identities, raw URLs/query strings, provider bodies, and lease tokens are excluded. Collector failures do not change responses, execution, or retry scheduling.
The private SDK is a verbatim source snapshot of the merged Cairn SDK PR, pinned to
fd029d1c90b100fd31313e902b065effeaac8712with build-verified SHA-256 checksums. A local package follows the existing@lovat/dbmodel, so CI and Docker need no cross-repository credentials or committed build artifacts. Hono is aligned to the SDK-compatible 4.13.16 patch. Cairn follow-up #2 fixes recurring/latest worker summary ordering on the receiver.Areas affected
Contracts and data
x-cairn-request-idresponse header. Unknown route mounts use a fixed placeholder rather than a raw path.Verification
Deployment
Reporting defaults off. No Railway variables, real destinations, or ingestion credentials are configured, and no migrations are added. Enable only after a reviewed staging rollout using
CAIRN_ENABLED=true, an HTTPS origin inCAIRN_URL,CAIRN_ENVIRONMENT, and the appropriate service-scopedCAIRN_INGESTION_TOKEN. Invalid/incomplete config leaves the service running with telemetry disabled. Docker/CI now prepare the local SDK package; API shutdown gains a bounded drain only when reporting is enabled. The user's existing dirty training checkout was preserved; this PR was built in an isolated checkout from current main.Cairn issue linking
Tracking ticket: LVT-303 — Add opt-in Cairn API and worker telemetry. Keep
LVT-303in this PR's title or description so Cairn can associate the PR with that task.LVT-303: Add opt-in Cairn API and worker telemetry. For multiple tickets, include each exact identifier in the description, for exampleCairn: LVT-303, <another-ticket-id>.pull_requestwebhook can apply the same convention automatically. A title convention alone does not configure webhook delivery. Private repository access requires the dedicated scoped read-only token; public Lovat metadata currently uses public GET requests.See the Cairn GitHub integration guide for the current behavior.