#2188·badger

x/net/trace causing DCE to be disabled

Author: kruskallCreated Apr 9, 2025Updated Jun 21, 2026
LabelsStale

Describe the bug

x/net/trace import at https://github.com/hypermodeinc/badger/blob/a9a63e263d9aa6a82d8b640bc6396afc4696dd6b/y/event_log.go#L8 is causing DCE (deadcode elimination) to be disabled for any app depending on this module

To Reproduce

Steps to reproduce the behavior:

  1. build badger or an app depending on badger
  2. DCE is disabled

Expected behavior

DCE is enabled

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • OS: [e.g. macOS, Windows, Ubuntu]
  • Language [e.g. AssemblyScript, Go]
  • Version [e.g. v0.xx]

Additional context

Add any other context about the problem here.