losfair / losfair/blueboat

Improve error reporting for application exceptions thrown in the initialization phase.

Open
#59 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
1.9k
Forks
56
PR merge metrics
No merged PRs in 30d

Description

Currently, for exceptions thrown in the initialization phase of an application:

  1. Stack traces are not included in the error message.
  2. The error is not aggregated to Kafka.

For example I got a confusing error message:

2022-01-03T10:15:43.468764Z ERROR blueboat::ctx: native invoke error from app ***.tar] request "unknown": expected type `v8::data::Uint8Array`, got `v8::data::Value`

Due to an undefined being passed to new TextDecoder().decode().

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace initialization-phase exception handling from the blueboat::ctx error path and inspect how errors are currently reported and aggregated to Kafka. Confirm the behavior with an initialization exception such as the undefined value passed to TextDecoder.decode(); done means the error includes a stack trace and is aggregated to Kafka.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, kafka, rust
Domain
backend, distributed-systems, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.