All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.javaagent.instrumentation.rxjava3.v3_1_1.RxJava3InstrumentationModule Maven / Gradle / Ivy

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

package io.opentelemetry.javaagent.instrumentation.rxjava3.v3_1_1;

import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasClassesNamed;

import com.google.auto.service.AutoService;
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
import java.util.Collections;
import java.util.List;
import net.bytebuddy.matcher.ElementMatcher;

@AutoService(InstrumentationModule.class)
public class RxJava3InstrumentationModule extends InstrumentationModule {

  public RxJava3InstrumentationModule() {
    super("rxjava3.1.1", "rxjava3");
  }

  @Override
  public ElementMatcher.Junction classLoaderMatcher() {
    return hasClassesNamed("io.reactivex.rxjava3.operators.ConditionalSubscriber");
  }

  @Override
  public List typeInstrumentations() {
    return Collections.singletonList(new RxJavaPluginsInstrumentation());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy