Skip to content

Runtime Metrics: Bun support #19867

@chargome

Description

@chargome

Bun inherits nodeRuntimeMetricsIntegration automatically but uses JavaScriptCore (not V8). Several APIs need special handling:

  • perf_hooks.monitorEventLoopDelay() — throws NotImplementedError, must catch and skip
  • v8.getHeapStatistics() — stub, needs bun:jsc.heapStats() fallback or skip
  • performance.eventLoopUtilization() — partial, best-effort
  • GC via PerformanceObserver — uncertain with JSC, needs validation

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions