updates #207

Merged
vtolstov merged 293 commits from updates into v3 2023-03-24 00:29:35 +03:00
Showing only changes of commit b08f5321b0 - Show all commits

View File

@@ -85,6 +85,7 @@ func (sk SpanKind) String() string {
type SpanOptions struct { type SpanOptions struct {
Labels []interface{} Labels []interface{}
Kind SpanKind Kind SpanKind
Record bool
} }
// SpanOption func signature // SpanOption func signature
@@ -116,6 +117,12 @@ func WithSpanKind(k SpanKind) SpanOption {
} }
} }
func WithSpanRecord(b bool) SpanOption {
return func(o *SpanOptions) {
o.Record = b
}
}
// Options struct // Options struct
type Options struct { type Options struct {
// Context used to store custome tracer options // Context used to store custome tracer options