MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithTracer

Function WithTracer

ots3/uploader.go:51–55  ·  view source on GitHub ↗

WithTracer is an option that add opentracing.Tracer via the hook of S3 client.

(tracer opentracing.Tracer)

Source from the content-addressed store, hash-verified

49
50// WithTracer is an option that add opentracing.Tracer via the hook of S3 client.
51func WithTracer(tracer opentracing.Tracer) ManagerOptionFunc {
52 return func(c *ManagerConfig) {
53 c.tracer = tracer
54 }
55}
56
57// WithPathPrefix is an option that changes the path prefix of uploaded file.
58func WithPathPrefix(pathPrefix string) ManagerOptionFunc {

Callers 3

newManagerFunction · 0.70
TestNewManagerFunction · 0.70
setupManagerWithTracerFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestNewManagerFunction · 0.56
setupManagerWithTracerFunction · 0.56