Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add debug mode fetch handler #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: add debug mode fetch handler #4

wants to merge 1 commit into from

Conversation

olizilla
Copy link
Contributor

it's not currently possible to see the logs of the tail worker itself using the cloudflare dashboard or wrangler tail.

this PR adds a debug fetch handler so you can check that loki is satisfied with your offerings

❯ curl http://127.0.0.1:8787/
⁂ loki-dev v1.0.0

# response is forwarded from the loki api, only enabled if env.DEBUG = 'true'
❯ curl http://127.0.0.1:8787/test -i
HTTP/1.1 204 No Content

License: MIT

it's not currently possible to see the logs of the tail worker itself using the cloudflare dashboard or `wrangler tail`.

this PR adds a debug fetch handler so you can check that loki is satisfied with your offerings

License: MIT
Signed-off-by: Oli Evans <oli@protocol.ai>
Copy link
Member

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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.

None yet

2 participants