sillsdev / sillsdev/languageforge-lexbox

We instrumented Node the messy way

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

Nobody has claimed this yet.

📦 Lexbox Code Debt OpenTelemetry
Dominant language
C#
Stars
9
Forks
8
Avg merge
2d 13h
Merged PRs (30d)
49

Description

You're supposed to start a node application that is instrumented with OTEL something like this:

node --require ./instrumentation.js app.js

This ensures that the instrumentation code is preloaded at startup.

I think that should get us more auto-instrumentation out of the box and hopefully make traceRequest() in otel.server.ts redundant.

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

Read otel.server.ts and the Node startup configuration, then compare current traceRequest() usage with the documented --require instrumentation.js launch path. Done means the application uses preload-based instrumentation and the existing tracing behavior remains covered without unnecessary traceRequest() handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
backend, observability-sre
Issue type
Refactor
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.