# nHibernate supported by .NET agent?

**URL:** <https://discuss.elastic.co/t/nhibernate-supported-by-net-agent/204224>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [October 18, 2019, 12:23pm UTC](https://discuss.elastic.co/t/nhibernate-supported-by-net-agent/204224 "2019-10-18T12:23:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwessman](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mwessman](https://discuss.elastic.co/u/mwessman)\
**Post date:** [October 18, 2019, 12:23pm UTC](https://discuss.elastic.co/t/nhibernate-supported-by-net-agent/204224/1 "2019-10-18T12:23:45Z")

</div>

Hi!

Attending a POC where .NET agent have been installed - data access technology is nHibernate; and we're not seeing any DB-spans.

So; initial questions before digging deeper: is nHibernate supported at all? If yes - any special config/other needed to get those spans visualized?

Thanks,

Mattias

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [October 18, 2019, 12:40pm UTC](https://discuss.elastic.co/t/nhibernate-supported-by-net-agent/204224/2 "2019-10-18T12:40:41Z")

</div>

Hi Mattias,

nHibarnate is currently unfortunately not supported by our .NET Agent. One option you can do in those cases is to do manual instrumentation with the [public agent API](https://www.elastic.co/guide/en/apm/agent/dotnet/current/public-api.html).

Greg

---

<div class="post-metadata">

**Author:** ![mwessman](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mwessman](https://discuss.elastic.co/u/mwessman)\
**Post date:** [October 18, 2019, 12:54pm UTC](https://discuss.elastic.co/t/nhibernate-supported-by-net-agent/204224/3 "2019-10-18T12:54:43Z")

</div>

Thanks! Any plans for adding support for nHibernate?

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [October 18, 2019, 1:01pm UTC](https://discuss.elastic.co/t/nhibernate-supported-by-net-agent/204224/4 "2019-10-18T13:01:50Z")

</div>

No short term plans for nHibernate. We are currently [working on Entity Framework (classic) support](https://github.com/elastic/apm-agent-dotnet/issues/335) - We already have Entity Framework Core support.

One thing we plan is to have direct [ADO.NET](http://ADO.NET) support - [this is](https://github.com/elastic/apm-agent-dotnet/issues/114) a good issue to follow for that. I believe that it'd also help with nHibernate, because if I'm not mistaken it uses [ADO.NET](http://ADO.NET) internally - at least in standard scenarios. But I'm not 100% sure here, so this is something which should be verified.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 8, 2019, 9:01am UTC](https://discuss.elastic.co/t/nhibernate-supported-by-net-agent/204224/5 "2019-11-08T09:01:51Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
