/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.instrumentation.rxjava.v3.common;

import io.opentelemetry.extension.annotations.WithSpan;
import io.reactivex.rxjava3.core.Completable;
import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.core.Maybe;
import io.reactivex.rxjava3.core.Observable;
import io.reactivex.rxjava3.core.Single;
import io.reactivex.rxjava3.parallel.ParallelFlowable;
import org.reactivestreams.Publisher;

public class TracedWithSpan {

  @WithSpan
  public Completable completable(Completable source) {
    return source;
  }

  @WithSpan
  public Maybe<String> maybe(Maybe<String> source) {
    return source;
  }

  @WithSpan
  public Single<String> single(Single<String> source) {
    return source;
  }

  @WithSpan
  public Observable<String> observable(Observable<String> source) {
    return source;
  }

  @WithSpan
  public Flowable<String> flowable(Flowable<String> source) {
    return source;
  }

  @WithSpan
  public ParallelFlowable<String> parallelFlowable(ParallelFlowable<String> source) {
    return source;
  }

  @WithSpan
  public Publisher<String> publisher(Publisher<String> source) {
    return source;
  }
}
