Documentation ¶ Index ¶ func Init(cfg *Config) (*trace.TracerProvider, error) type Config func NewConfig() *Config func (c *Config) WithServerName(serverName string) *Config func (c *Config) WithVersion(version string) *Config func (c *Config) WithWriter(w io.Writer) *Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init(cfg *Config) (*trace.TracerProvider, error) Init 初始化一个向指定 writer 写数据的 追踪器 Types ¶ type Config ¶ type Config struct { // contains filtered or unexported fields } func NewConfig ¶ func NewConfig() *Config func (*Config) WithServerName ¶ func (c *Config) WithServerName(serverName string) *Config func (*Config) WithVersion ¶ func (c *Config) WithVersion(version string) *Config func (*Config) WithWriter ¶ func (c *Config) WithWriter(w io.Writer) *Config Source Files ¶ View all Source files config.go stdout.go Click to show internal directories. Click to hide internal directories.