io.opentelemetry.javaagent.instrumentation.vertx.client.HttpRequestHeaderSetter 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.context.propagation.TextMapSetter;
import io.vertx.core.http.HttpClientRequest;
public class HttpRequestHeaderSetter implements TextMapSetter {
@Override
public void set(HttpClientRequest carrier, String key, String value) {
if (carrier != null) {
carrier.putHeader(key, value);
}
}
}