logging

package
v0.0.0-...-9e605f1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *log.Entry

Functions

func LogService

func LogService(name string) *log.Entry

LogService 返回一个带有服务名称的日志记录器

func SetSpanError

func SetSpanError(span trace.Span, err error)

SetSpanError 记录 span 错误并设置状态为错误

func SetSpanErrorWithDesc

func SetSpanErrorWithDesc(span trace.Span, err error, desc string)

SetSpanErrorWithDesc 记录 span 错误并设置状态为错误,带有描述信息

func SetSpanWithHostname

func SetSpanWithHostname(span trace.Span)

SetSpanWithHostname 在 span 中设置主机名和 Pod IP

Types

This section is empty.

Jump to

Keyboard shortcuts

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