Skip to content

[feature] Local Drain with Workerd #349

@jonbeckman

Description

@jonbeckman

Problem or motivation

My goal is to have an easy method for agents to access logs during local dev sessions. The recommended solution is to use the fs drain and save them to a file path that your agent can then parse. However, that does not work when running within Cloudflare Workers (workerd runtime) as it doesn't fully support node's fs module.

Based on my 𝕏 thread with Hugo https://x.com/jonbeckman/status/2057564288458412141?s=20

Proposed feature

I would like a solution where agents can easily retrieve logs (and ideally metrics and traces) from my local dev service thats running within workerd.

Possible implementation (optional)

No response

Alternatives you’ve considered (optional)

I am draining to a local OTLP, which my agent is aware of.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions