mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-20 08:16:40 +00:00
22 lines
390 B
Go
22 lines
390 B
Go
package core
|
|
|
|
type ITracer = func(TraceContext, string, SpanOptions) ISpan
|
|
|
|
type ISpan interface {
|
|
SetError(error)
|
|
Close()
|
|
TraceContext() TraceContext
|
|
}
|
|
|
|
type SpanOptions struct {
|
|
Kind string
|
|
Service string
|
|
Attributes map[string]string
|
|
}
|
|
|
|
type TraceContext struct {
|
|
UserAgent string `json:"user-agent"`
|
|
TraceID string `json:"traceID"`
|
|
SpanID string `json:"spanID"`
|
|
}
|