How to use the rsocket-flowable/build/Single.Single function in rsocket-flowable

To help you get started, we’ve selected a few rsocket-flowable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rsocket / rsocket-rpc-js / rsocket-rpc-js / packages / tracing / src / SpanSingle.js View on Github external
export function createSpanSingle(
  single: Single,
  tracer: Tracer,
  name: string,
  context?: SpanContext | Span,
  metadata?: Object,
  ...tags: Object
) {
  return new Single(subscriber => {
    const spanSubscriber = new SpanSingleSubscriber(
      subscriber,
      tracer,
      name,
      context,
      metadata,
      ...tags,
    );
    single.subscribe(spanSubscriber);
  });
}