apm-agent-plugins/apm-jms-plugin/apm-jms-jakarta/src/main/java/co/elastic/apm/agent/jms/jakarta/JmsMessageProducerInstrumentation.java [79:89]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            public static Object beforeSend(@Advice.Argument(0) final Message message,
                                            @Advice.This final MessageProducer producer) {

                try {
                    Destination destination = producer.getDestination();
                    return helper.startJmsSendSpan(destination, message);
                } catch (JMSException e) {
                    logger.warn("Failed to retrieve message's destination", e);
                }
                return null;
            }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



apm-agent-plugins/apm-jms-plugin/apm-jms-javax/src/main/java/co/elastic/apm/agent/jms/javax/JmsMessageProducerInstrumentation.java [79:89]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            public static Object beforeSend(@Advice.Argument(0) final Message message,
                                            @Advice.This final MessageProducer producer) {

                try {
                    Destination destination = producer.getDestination();
                    return helper.startJmsSendSpan(destination, message);
                } catch (JMSException e) {
                    logger.warn("Failed to retrieve message's destination", e);
                }
                return null;
            }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



