mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 01:07:33 -06:00
bumps our uptrace/bun dependencies to v1.2.10 (#3865)
This commit is contained in:
parent
ddd9210614
commit
67a2b3650c
37 changed files with 518 additions and 225 deletions
9
vendor/github.com/uptrace/bun/extra/bunotel/option.go
generated
vendored
9
vendor/github.com/uptrace/bun/extra/bunotel/option.go
generated
vendored
|
|
@ -1,6 +1,7 @@
|
|||
package bunotel
|
||||
|
||||
import (
|
||||
"github.com/uptrace/bun"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
"go.opentelemetry.io/otel/metric"
|
||||
semconv "go.opentelemetry.io/otel/semconv/v1.12.0"
|
||||
|
|
@ -33,6 +34,14 @@ func WithFormattedQueries(format bool) Option {
|
|||
}
|
||||
}
|
||||
|
||||
// WithSpanNameFormatter takes a function that determines the span name
|
||||
// for a given query event.
|
||||
func WithSpanNameFormatter(f func(*bun.QueryEvent) string) Option {
|
||||
return func(h *QueryHook) {
|
||||
h.spanNameFormatter = f
|
||||
}
|
||||
}
|
||||
|
||||
// WithTracerProvider returns an Option to use the TracerProvider when
|
||||
// creating a Tracer.
|
||||
func WithTracerProvider(tp trace.TracerProvider) Option {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue