add abilit to skip span recording

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-05-04 19:31:35 +03:00
parent b08f5321b0
commit 7c0a5f5e2a

View File

@ -155,7 +155,8 @@ func NewEventOptions(opts ...EventOption) EventOptions {
// NewSpanOptions returns default SpanOptions // NewSpanOptions returns default SpanOptions
func NewSpanOptions(opts ...SpanOption) SpanOptions { func NewSpanOptions(opts ...SpanOption) SpanOptions {
options := SpanOptions{ options := SpanOptions{
Kind: SpanKindInternal, Kind: SpanKindInternal,
Record: true,
} }
for _, o := range opts { for _, o := range opts {
o(&options) o(&options)