add abilit to skip span recording
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
b08f5321b0
commit
7c0a5f5e2a
@ -156,6 +156,7 @@ func NewEventOptions(opts ...EventOption) EventOptions {
|
||||
func NewSpanOptions(opts ...SpanOption) SpanOptions {
|
||||
options := SpanOptions{
|
||||
Kind: SpanKindInternal,
|
||||
Record: true,
|
||||
}
|
||||
for _, o := range opts {
|
||||
o(&options)
|
||||
|
Loading…
x
Reference in New Issue
Block a user