Artifact 36513f2b9018c2ed9d648f09e37e64eec7ba06931a8cb16f9a12cac6ee91d5d5:
- File
leaf/telemetry/noop.go
— part of check-in
[38efed7a12]
at
2026-08-12 20:50:57
on branch main
— chore(deps): migrate to go-libfossil v0.9.0 (#195)
* chore(deps): migrate to go-libfossil v0.9.0 (renamed module path)
- import path danmestas/libfossil → danmestas/go-libfossil everywhere - CloneOpts.ProjectCode removed upstream; assert via CloneResult instead - Timeline now takes TimelineOpts (cursor pagination, newest-first) - testutil.HasFossil removed; check FossilBinary() != ""
* ci: retrigger checks
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> (user: [email protected], size: 1511) [annotate] [blame] [check-ins using]
//go:build wasip1 || js package telemetry import ( "context" "time" libfossil "github.com/danmestas/go-libfossil" ) // TelemetryConfig is a stub for WASM builds. type TelemetryConfig struct { ServiceName string Endpoint string Headers map[string]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) {}