Split hibernate reactive instrumentation (#9531)
This commit is contained in:
parent
e73118b434
commit
edb0db39d7
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0;
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0.mutiny;
|
||||
|
||||
import io.opentelemetry.context.Context;
|
||||
import io.opentelemetry.context.Scope;
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright The OpenTelemetry Authors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0.mutiny;
|
||||
|
||||
import static java.util.Collections.singletonList;
|
||||
|
||||
import com.google.auto.service.AutoService;
|
||||
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
|
||||
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
|
||||
import java.util.List;
|
||||
|
||||
@AutoService(InstrumentationModule.class)
|
||||
public class HibernateReactiveMutinyInstrumentationModule extends InstrumentationModule {
|
||||
|
||||
public HibernateReactiveMutinyInstrumentationModule() {
|
||||
super("hibernate-reactive", "hibernate-reactive-1.0", "hibernate-reactive-mutiny");
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TypeInstrumentation> typeInstrumentations() {
|
||||
return singletonList(new MutinySessionFactoryInstrumentation());
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0;
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0.mutiny;
|
||||
|
||||
import static net.bytebuddy.matcher.ElementMatchers.nameStartsWith;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.named;
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0;
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0.stage;
|
||||
|
||||
import io.opentelemetry.context.Context;
|
||||
import io.opentelemetry.context.Scope;
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0;
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0.stage;
|
||||
|
||||
import io.opentelemetry.context.Context;
|
||||
import io.opentelemetry.context.Scope;
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0;
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0.stage;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
|
||||
|
@ -13,17 +13,14 @@ import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
|
|||
import java.util.List;
|
||||
|
||||
@AutoService(InstrumentationModule.class)
|
||||
public class HibernateReactiveInstrumentationModule extends InstrumentationModule {
|
||||
public class HibernateReactiveStageInstrumentationModule extends InstrumentationModule {
|
||||
|
||||
public HibernateReactiveInstrumentationModule() {
|
||||
super("hibernate-reactive", "hibernate-reactive-1.0");
|
||||
public HibernateReactiveStageInstrumentationModule() {
|
||||
super("hibernate-reactive", "hibernate-reactive-1.0", "hibernate-reactive-stage");
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TypeInstrumentation> typeInstrumentations() {
|
||||
return asList(
|
||||
new StageSessionFactoryInstrumentation(),
|
||||
new StageSessionImplInstrumentation(),
|
||||
new MutinySessionFactoryInstrumentation());
|
||||
return asList(new StageSessionFactoryInstrumentation(), new StageSessionImplInstrumentation());
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0;
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0.stage;
|
||||
|
||||
import static net.bytebuddy.matcher.ElementMatchers.named;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.namedOneOf;
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0;
|
||||
package io.opentelemetry.javaagent.instrumentation.hibernate.reactive.v1_0.stage;
|
||||
|
||||
import static net.bytebuddy.matcher.ElementMatchers.named;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.namedOneOf;
|
Loading…
Reference in New Issue