smtp4dev icon indicating copy to clipboard operation
smtp4dev copied to clipboard

Add Opentelemetry support

Open Bjego opened this issue 2 months ago • 2 comments

Hey, I've seen your FakeSMTP project. You are using classic logging for now. Please add Opentelemetry and ApplicationInsights support. You can either add it via serilog or the better approach - remove serilog and replace it with otel.

Thanks in advance

Bjego avatar Oct 27 '25 07:10 Bjego

What's the use case here?

rnwood avatar Dec 04 '25 05:12 rnwood

Hi @rnwood , when you would add Opentelemetry, the logs and apicalls from smtp4dev would appear in the global log / metric / trace landscape of the distributed systems. You could track the connections between the clients, mailkit and smtp4dev. It so it helps spotting issues in a distributed system and when you use aspire - opentelemetry is a build in feature for tracking dependencies between the systems / services.

Bjego avatar Dec 08 '25 06:12 Bjego