Help us shape the future of Go! Take the 2026 Go Developer Survey

startupdiag

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(runtimeRoot, component, stage string, startedAt time.Time, attrs ...slog.Attr) error

Append 把稳定 Task Host 的早期阶段写入独立 startup.log。这里每次写完即关闭, 避免长期持有 Core 的 agentdock.err.log,也不会让诊断日志失败阻断真实启动链路。

func Log

func Log(logger *slog.Logger, component, stage string, startedAt time.Time, attrs ...slog.Attr)

Log 记录一个启动阶段的完成时间。阶段日志只包含耗时和非敏感定位信息, 用于把 Windows Task Host、Core 初始化和 HTTP 监听串成一条可比较的时间线。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL