opentelemetry

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomSpanFunc

type CustomSpanFunc func(ctx context.Context, span otelTrace.Span, inv *orm.Invocation)

type FilterChainBuilder

type FilterChainBuilder struct {
	// contains filtered or unexported fields
}

FilterChainBuilder provides an opentelemtry Filter

func NewFilterChainBuilder

func NewFilterChainBuilder(options ...FilterChainOption) *FilterChainBuilder

func (*FilterChainBuilder) FilterChain

func (builder *FilterChainBuilder) FilterChain(next orm.Filter) orm.Filter

FilterChain traces invocation with opentelemetry Unless invocation.Method is Begin*, Commit or Rollback

type FilterChainOption

type FilterChainOption func(fcv *FilterChainBuilder)

func WithCustomSpanFunc

func WithCustomSpanFunc(customSpanFunc CustomSpanFunc) FilterChainOption

WithCustomSpanFunc add function to custom span

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL