@PointCut
    public void basicPublish(String exchange, String routingKey,
                             boolean mandatory, boolean immediate,
                             AMQP.BasicProperties props, byte[] body) {
        // Use a separate Java class file.
        // For example, use local variables or use features that depend on Java versions such as lambdas.
        AMQP.BasicProperties useProps = BasicPropertiesHelper.copy(props);
        __basicPublish(exchange, routingKey, mandatory, immediate, useProps, body);
    }
Make a copy of {@code AMQP.BasicProperties} to inject pinpoint headers.

@author HyunGil Jeong
agent-module/plugins/rabbitmq/src/main/java/com/navercorp/pinpoint/plugin/rabbitmq/client/aspect/ChannelAspect.java