io.opentelemetry.javaagent.instrumentation.vertx.client.VertxClientInstrumenterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-javaagent-vertx-http-client-common Show documentation
Show all versions of opentelemetry-javaagent-vertx-http-client-common Show documentation
Instrumentation of Java libraries using OpenTelemetry.
The newest version!
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.vertx.client;
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
import io.opentelemetry.javaagent.bootstrap.internal.JavaagentHttpClientInstrumenters;
import io.vertx.core.http.HttpClientRequest;
import io.vertx.core.http.HttpClientResponse;
public final class VertxClientInstrumenterFactory {
public static Instrumenter create(
String instrumentationName, AbstractVertxHttpAttributesGetter httpAttributesGetter) {
return JavaagentHttpClientInstrumenters.create(
instrumentationName, httpAttributesGetter, new HttpRequestHeaderSetter());
}
private VertxClientInstrumenterFactory() {}
}