InTapHandle returns a ServerOption that sets the tap handle for all the server transport to be created. Only one can be installed. # Experimental Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
(h tap.ServerInHandle)
| 530 | // Notice: This API is EXPERIMENTAL and may be changed or removed in a |
| 531 | // later release. |
| 532 | func InTapHandle(h tap.ServerInHandle) ServerOption { |
| 533 | return newFuncServerOption(func(o *serverOptions) { |
| 534 | if o.inTapHandle != nil { |
| 535 | panic("The tap handle was already set and may not be reset.") |
| 536 | } |
| 537 | o.inTapHandle = h |
| 538 | }) |
| 539 | } |
| 540 | |
| 541 | // StatsHandler returns a ServerOption that sets the stats handler for the server. |
| 542 | func StatsHandler(h stats.Handler) ServerOption { |