Artifact 57200e1c82d511359282d65ad06bbc31410680ead57743920c3db1d1b7c9af14:
- File
leaf/telemetry/noop.go
— part of check-in
[eda7960b81]
at
2026-04-23 19:23:42
on branch trunk
— rename module to github.com/danmestas/EdgeSync
Fix the case-sensitive module path to match the actual GitHub repo URL (danmestas/EdgeSync). Remove tracked leaf/leaf binary and ignore .claude/skills/ scratchpad dirs. (user: [email protected], size: 1474) [annotate] [blame] [check-ins using] [more...]
//go:build wasip1 || js package telemetry import ( "context" "time" libfossil "github.com/danmestas/libfossil" ) // TelemetryConfig is a stub for WASM builds. type TelemetryConfig struct { ServiceName string Endpoint string Insecure bool Environment string Version string InstanceID string RepoPath string SampleRatio float64 MetricInterval time.Duration } // Setup is a no-op on WASM — returns a no-op shutdown function. func Setup(_ context.Context, _ TelemetryConfig) (func(context.Context) error, error) { return func(context.Context) error { return nil }, nil } // OTelObserver is a no-op on WASM builds. type OTelObserver struct{} // NewOTelObserver returns a no-op observer on WASM builds. func NewOTelObserver(_ any, _ any) *OTelObserver { return &OTelObserver{} } func (*OTelObserver) Started(_ libfossil.SessionStart) {} func (*OTelObserver) RoundStarted(_ int) {} func (*OTelObserver) RoundCompleted(_ int, _ libfossil.RoundStats) {} func (*OTelObserver) Completed(_ libfossil.SessionEnd) {} func (*OTelObserver) Error(_ error) {} func (*OTelObserver) HandleStarted(_ libfossil.HandleStart) {} func (*OTelObserver) HandleCompleted(_ libfossil.HandleEnd) {} func (*OTelObserver) TableSyncStarted(_ libfossil.TableSyncStart) {} func (*OTelObserver) TableSyncCompleted(_ libfossil.TableSyncEnd) {}