Skip to content

improve runtime detection - #38

Merged
frytg merged 1 commit into
mainfrom
feat/cursor-improve-runtime-detection-5b85
Jul 13, 2026
Merged

improve runtime detection#38
frytg merged 1 commit into
mainfrom
feat/cursor-improve-runtime-detection-5b85

Conversation

@frytg

@frytg frytg commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Add Fly.io and Deno Deploy cloud environment context to log events, and detect runtime once at module load instead of on every log event.

Changes

  • Cache detectProcessVersion() result at module load; log events reuse the cached processRuntime value
  • Add Fly.io env vars: FLY_MACHINE_ID (host), FLY_APP_NAME (serviceName), FLY_REGION (region)
  • Add Deno Deploy env vars: DENO_DEPLOYMENT_ID (host), DENO_REGION (region), deno-deploy-* runtime prefix when on Deno Deploy
  • Add tests for fly.io/deno deploy context and runtime caching
  • Bump @frytg/logger to 0.0.4

How to test

deno run check
deno run test
deno publish --dry-run

References

Open in Web Open in Cursor 

Detect process runtime once at module load instead of on every log
event. Add Fly.io and Deno Deploy environment variables for host,
serviceName, and region fields.

Co-authored-by: Dan <daniel@frytg.com>
@frytg
frytg marked this pull request as ready for review July 13, 2026 08:29
@frytg frytg linked an issue Jul 13, 2026 that may be closed by this pull request
@frytg
frytg merged commit 7b243c5 into main Jul 13, 2026
16 checks passed
@frytg
frytg deleted the feat/cursor-improve-runtime-detection-5b85 branch July 13, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

improve runtime detection

2 participants