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

@ -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)