opentelemetry-java-instrumentation
opentelemetry-java-instrumentation copied to clipboard
[improve][pulsar] Enhance SendCallback to address PIP-363
In PIP-363, Pulsar will change the org.apache.pulsar.client.impl.SendCallback#sendComplete method sign from
public void sendComplete(Exception e)
to
public void sendComplete(Exception e, OpSendMsgStats stats)
As we wrapped org.apache.pulsar.client.impl.SendCallback#sendComplete in ProducerImplInstrumentation, this PIP will break the current javaagent behavior.
This PR is for the purpose of addressing it, and it will also compatible with pulsar client 2.8.0 to LATEST.