Setup Elastic APM for WPF application

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

using Elastic.Apm;
using System;

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

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 for the .NET APM agent (although you can upvote it in the survey 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. You'll need to add the Elastic.Apm Nuget dependency to your WPF application and follow the Public API documentation.

Hope that helps!

Carly

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