Moved the server starting logic to the receiver and updated
New to
New(address string) (*ZipkinReceiver, error)
instead of
New(spansink.Sink) (*ZipkinReceiver, error)
This change ensures that after invoking New all the user
has to do is then just invoke:
zr.StartTraceReception(context.Context, spansink.Sink) error
and then for cleanup
defer zr.StopTraceReception(context.Context)
Fixes #212
|
||
|---|---|---|
| .. | ||
| ocagent | ||
| occollector | ||