io.opentelemetry.instrumentation.rocketmqclient.v4_8.MapSetter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-rocketmq-client-4.8 Show documentation
Show all versions of opentelemetry-rocketmq-client-4.8 Show documentation
Instrumentation of Java libraries using OpenTelemetry.
The newest version!
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.rocketmqclient.v4_8;
import io.opentelemetry.context.propagation.TextMapSetter;
import org.apache.rocketmq.client.hook.SendMessageContext;
enum MapSetter implements TextMapSetter {
INSTANCE;
@Override
public void set(SendMessageContext carrier, String key, String value) {
if (carrier == null) {
return;
}
carrier.getMessage().getProperties().put(key, value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy