WithResponseLogThreshold is options that sets threshold of response logging in number of bytes. If the response body is larger than this threshold, the log will be omit.
(num int)
| 50 | // WithResponseLogThreshold is options that sets threshold of response logging in number of bytes. |
| 51 | // If the response body is larger than this threshold, the log will be omit. |
| 52 | func WithResponseLogThreshold(num int) Option { |
| 53 | return func(client *Client) { |
| 54 | client.responseLogThreshold = num |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // NewClient creates a Client with tracing support. |
| 59 | func NewClient(tracer opentracing.Tracer, options ...Option) *Client { |
no outgoing calls