# Setup Elastic APM for WPF application

**URL:** <https://discuss.elastic.co/t/setup-elastic-apm-for-wpf-application/355667>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [March 18, 2024, 11:30pm UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-wpf-application/355667 "2024-03-18T23:30:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thi\_hong\_van\_Nguyen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thi_hong_van_nguyen/32/132764_2.png) [@Thi\_hong\_van\_Nguyen](https://discuss.elastic.co/u/Thi_hong_van_Nguyen)\
**Post date:** [March 18, 2024, 11:30pm UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-wpf-application/355667/1 "2024-03-18T23:30:20Z")

</div>

My company asked me to implement APM into our WPF application but I could not find any document supporting the case of WPF app. All they gave me is the setting information:  
"ElasticApm": {  
"ServerUrls": "https://\_\_ **.apm.us-east-1.aws.cloud.es.io:**",  
"ServiceName": "",  
"SecretToken": "",  
"Environment": ""  
}  
How can I set this up for WPF app? The app runs this code when running the app

```auto
using Elastic.Apm;
using System;

namespace App_Name
{
    public partial class App : Application
    {      
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
        }
    }
}

```

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [March 19, 2024, 10:32am UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-wpf-application/355667/2 "2024-03-19T10:32:44Z")

</div>

Hi @Thi_hong_van_Nguyen,

Welcome to the community! Which version of WPF are you using?

There isn't an explicit guide for WPF as it's not covered in [the supported technologies list](https://www.elastic.co/guide/en/apm/agent/dotnet/current/supported-technologies.html) for the .NET APM agent (although you can upvote it in [the survey](https://docs.google.com/forms/d/18SgsVo9asGNFMjRqwdrk3wTHNwPhtHv4jE35hZRCL6A/) as per the documentation).

Don't panic! For other .NET technologies you can still use the agent to instrument your application and [use the public API to create spans and transactions manually](https://www.elastic.co/guide/en/apm/agent/dotnet/current/setup-general.html). You'll need to add the [Elastic.Apm Nuget dependency](https://www.nuget.org/packages/Elastic.Apm) to your WPF application and follow the [Public API documentation](https://www.elastic.co/guide/en/apm/agent/dotnet/current/public-api.html).

Hope that helps!

Carly

---

<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 16, 2024, 10:33am UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-wpf-application/355667/3 "2024-04-16T10:33:09Z")

</div>

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