Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Add Sentry to Worker #41

Open
mike-audi opened this issue Jan 25, 2023 · 1 comment
Open

Add Sentry to Worker #41

mike-audi opened this issue Jan 25, 2023 · 1 comment
Labels
fix Iterations on existing features or infrastructure.

Comments

@mike-audi
Copy link
Contributor

mike-audi commented Jan 25, 2023

As a developer I want to see error reporting (and ideally performance metrics) on our serverless worker functions.

HOWEVER

Sentry does not offer a pure JS SDK for serverless; they have a nodejs SDK with wrappers for Lambda/GCP.

But! Cloudflare workers are special (no cold start) and don't really support a node runtime (in beta and a bit wonky).

  • One option is to take inspiration from the node & pure js SDKs and create a new JS serverless SDK using their API

  • A second possible option is to investigate migrating the worker code to Rust and using the Sentry Rust SDK. It's unclear without more investigation IF this is viable.

@timoguin
Copy link
Contributor

CloudFlare worker logs are another possibility. With a good structured logging library, we can output observability data to stdout.

CloudFlare's LogPush allows us to stream those to a number of destinations.

References

@mike-audi mike-audi added this to Roadmap May 1, 2023
@mike-audi mike-audi moved this to TODO in Roadmap May 1, 2023
@mike-audi mike-audi added the fix Iterations on existing features or infrastructure. label May 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fix Iterations on existing features or infrastructure.
Projects
None yet
Development

No branches or pull requests

2 participants