feat(browser-bunyan): add log injection support - #9705
Conversation
## Summary - add browser-bunyan instrumentation, plugin registration, types, documentation, and CI coverage - share Bunyan record wrapping and injection behavior while keeping integration channels and configuration independent - regenerate the supported integration and configuration type outputs ## Why Isomorphic applications using browser-bunyan otherwise need custom trace-correlation injection. Sharing Bunyan behavior prevents the two implementations from drifting without coupling their enablement. ## Test plan - PLUGINS="bunyan|browser-bunyan" npm run test:plugins - scoped c8 coverage and coverage-diff audit - plugin structure, generated-file, current/v5 type, and full lint checks Co-authored-by: Nathan Brown <nathan@nkbrown.us>
Overall package sizeSelf size: 7.85 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.3 | 125.43 kB | 441.68 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
|
BenchmarksBenchmark execution time: 2026-08-05 20:07:05 Comparing candidate commit 72cd4d5 in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 2312 metrics, 45 unstable metrics.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9705 +/- ##
========================================
Coverage 98.51% 98.51%
========================================
Files 963 966 +3
Lines 135796 135824 +28
Branches 11984 11743 -241
========================================
+ Hits 133785 133813 +28
Misses 2011 2011 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The browser-bunyan lockfile resolves packages through a local Verdaccio registry, so the upstream install fails before the normal plugin matrix completes.
Summary
browser-bunyanlog injectionWhy
Server-side
browser-bunyanlogs cannot currently receive trace correlation without a local patch. Sharing the existing Bunyan path prevents the implementations from drifting while preserving independent enablement.Test plan
PLUGINS="bunyan|browser-bunyan" npm run test:pluginsc8coverage for all changed runtime linesnpm run lintRefs: #9701
Refs: #1935