# APM Agent for .NET docker AWS Lambda

**URL:** https://discuss.elastic.co/t/apm-agent-for-net-docker-aws-lambda/327834
**Category:** APM
**Tags:** docker, dotnet, aws-lambda
**Created:** [March 16, 2023, 9:10am UTC](https://discuss.elastic.co/t/apm-agent-for-net-docker-aws-lambda/327834 "2023-03-16T09:10:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![xardes](https://avatars.discourse-cdn.com/v4/letter/x/73ab20/32.png) [@xardes](https://discuss.elastic.co/u/xardes)
#### Post date: [March 16, 2023, 9:10am UTC](https://discuss.elastic.co/t/apm-agent-for-net-docker-aws-lambda/327834/1 "2023-03-16T09:10:54Z")

</div>

According to the [documentation](https://www.elastic.co/guide/en/apm/guide/8.6/monitoring-aws-lambda.html) , there is no apm agent for lambda functions that run in .net. Is there any plan to add such an agent? Is there any option to monitor such functions at this time?

---

<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: [March 17, 2023, 6:43pm UTC](https://discuss.elastic.co/t/apm-agent-for-net-docker-aws-lambda/327834/2 "2023-03-17T18:43:29Z")

</div>

Hi @xardes,

Yes, we do plan to support AWS Lambda with .NET. We have a GitHub issue for this: [[META 352] AWS Lambda support · Issue #1764 · elastic/apm-agent-dotnet · GitHub](https://github.com/elastic/apm-agent-dotnet/issues/1764)

> Is there any option to monitor such functions at this time?

This depends on the specific use-case. Theoretically, if it's let's say an [ASP.NET](http://ASP.NET) Core app, running in Lambda, then the current agent would still work.

There are essentially 2 issues:

- Something needs to start the transactions - if we have auto instrumentation for what you use (e.g. [ASP.NET](http://ASP.NET) Core), then we got this covered, otherwise, you'd need to manually start the transaction. Docs [here](https://www.elastic.co/guide/en/apm/agent/dotnet/current/public-api.html#api-start-transaction)
- The other problem is that, if the process is killed, the agent may not have the chance to send the events. This again, depends your app. This is definitely a no-go for short living processes, but may be ok for other apps.

We plan to address these points in the GitHub issue linked above.

---

<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: [April 7, 2023, 2:44pm UTC](https://discuss.elastic.co/t/apm-agent-for-net-docker-aws-lambda/327834/3 "2023-04-07T14:44:15Z")

</div>

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