Documentation
¶
Index ¶
Constants ¶
View Source
const ( InstrumentationName = "filesystem" InstrumentationVersion = "1.0.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File interface { io.ReadWriteCloser }
type InstrumentationOptionFunc ¶
type InstrumentationOptionFunc func(io *InstrumentationOptions)
InstrumentationOptionFunc allows for providing dynamic options instrumentation as project becomes more stable
func WithTracerProvider ¶
func WithTracerProvider(tp sdktrace.TracerProvider) InstrumentationOptionFunc
type InstrumentationOptions ¶
type InstrumentationOptions struct {
TracerProvider sdktrace.TracerProvider
}
type ManagedFS ¶
type ManagedFS interface { Create(ctx context.Context, name string) (File, error) Delete(ctx context.Context, name string) error Open(ctx context.Context, name string) (File, error) }
ManagedFS is an interface that allows CRUD interactions with a abstracted filesystem.
func ApplyFSLock ¶
func ApplyInstrumented ¶
func ApplyInstrumented(fs ManagedFS, opts ...InstrumentationOptionFunc) ManagedFS
Click to show internal directories.
Click to hide internal directories.