Documentation ¶
Index ¶
- func GetTraceIdFromContext(ctx context.Context) string
- func IsRun() bool
- func Log(span trace.Span, message string)
- func Register(tp *tracesdk.TracerProvider) *tracesdk.TracerProvider
- func Shutdown(tp *tracesdk.TracerProvider)
- func Tag(span trace.Span, key, value string)
- func Tracer(name ...string) trace.Tracer
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTraceIdFromContext ¶
func Register ¶
func Register(tp *tracesdk.TracerProvider) *tracesdk.TracerProvider
func Shutdown ¶
func Shutdown(tp *tracesdk.TracerProvider)
Types ¶
type Options ¶
type Options struct { Name string `json:"name" mapstructure:"name"` Url string `json:"url" mapstructure:"url"` Auth string `json:"auth" mapstructure:"auth"` Log struct { Trace bool `json:"trace" mapstructure:"trace"` File bool `json:"file" mapstructure:"file"` } `json:"log" mapstructure:"log"` }
func NewOptions ¶
Click to show internal directories.
Click to hide internal directories.