-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Email Observability in Spring Framework #34496
Comments
That's something we could look into. |
I found nothing about mail/SMTP in the semantic conventions. I will create an issue on the OpenTelemetry side. It might be nice to add this to Micrometer. I will check how it works and test it. Is it something like this? Micrometer Jakarta9 JMS Instrumentation |
Thanks! Please share the link here.
Yes, but proxying in this case might not be required, it all depends on what should be instrumented and how. |
@bclozel I think I need proxying the |
Thanks @famaridon . I'll leave this opened for now but I will probably close it as soon as the OTel and Micrometer issues are created. |
Opentelemtry request open-telemetry/semantic-conventions#1945 |
If anyone here is interested in this feature, they should raise a new issue or PR to Micrometer directly as instrumentation probably needs to happen at the jakarta.mail level. |
Link to micrometer issue micrometer-metrics/micrometer#5985 |
Hello,
I am using Spring Boot with Micrometer to monitor my application. Everything works well except for email monitoring. The
JavaMailSenderImpl
class does not support observation.I created a decorator to solve this issue, but it's not perfect. I had to bridge the
send(MimeMessage... mimeMessages)
method to thesend(MimeMessage mimeMessage)
method. This has the side effect of reopening theTransport
for eachMimeMessage
.Before submitting a pull request, I would like to discuss two possible solutions with you:
Option 1: Register TransportListener
TransportListener
for all createdTransport
objects.Option 2: New MailSendListener Interface
MailSendListener
, dedicated to mail observations, similar to Spring Data MongoDB.Please let me know your thoughts on these options.
Thank you!
The text was updated successfully, but these errors were encountered: