WithTracer is an option that add opentracing.Tracer via the hook of S3 client.
(tracer opentracing.Tracer)
| 49 | |
| 50 | // WithTracer is an option that add opentracing.Tracer via the hook of S3 client. |
| 51 | func 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. |
| 58 | func WithPathPrefix(pathPrefix string) ManagerOptionFunc { |
no outgoing calls