Hangfire with observability platform

Hello,

Is it possible today to use Hangfire in conjunction with an observability platform in the style of Azure Application Insights or Datadog?

For Application Insights the logs do not seem to be returned when they are called in a Hangfire job, and concerning datadog I do not see any possible integration between the two services.

The goal is to have a unified dashboard for all the services in our company.

Thanks

Hi so Hangfire is classic .NetCore app you can instrument and collect all logs and telemetry from it and export to some collector…

I’m using hangfire in role of scheduler and can see full request traces include this async hangfire calls… Only think you need to do is to serialize tracking(span)information…

You can find full working app example with hangfire under this repo: https://github.com/damikun/trouble-training

and this is how monitored request looks like https://github.com/damikun/trouble-training/blob/main/Doc/Assets/elastic_apm_example.png at the end there is somethik named “SchedulerExecutor” and this is work done by Hangfire…

I hope it help but you need to make some integration to make it work all in repo available to understand…