# azure-service-fabric-dotnet-tracing-sample **Repository Path**: mirrors_DataDog/azure-service-fabric-dotnet-tracing-sample ## Basic Information - **Project Name**: azure-service-fabric-dotnet-tracing-sample - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-16 - **Last Updated**: 2025-10-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README --- languages: - csharp products: - azure - azure-service-fabric page_type: sample description: "The quickstart contains an application with multiple services demonstrating the concepts of service communication and use of reliable dictionaries, in conjunction with Datadog installation." --- # Service Fabric .NET Quickstart This repository contains an quickstart project for [Microsoft Azure Service Fabric](https://azure.microsoft.com/services/service-fabric/). The quickstart project contains a single application with multiple services demonstrating the basic concepts of service communication and use of reliable dictionaries. For a guided tour with the quickstart: [Service Fabric .NET quickstart](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-quickstart-dotnet) More info on Service Fabric: - [Documentation](https://docs.microsoft.com/azure/service-fabric/) - [Service Fabric sample projects](https://azure.microsoft.com/resources/samples/?service=service-fabric) - [Service Fabric open source home repo](https://github.com/azure/service-fabric) This guide does not include how-to on setting up and configuring an Azure Service Fabric Cluster. ## Create a service fabric application ![Create a service fabric project](https://user-images.githubusercontent.com/1801443/93098850-5079fd80-f675-11ea-90d6-7573b7faef68.png) Start with a stateless ASP.NET Core application, and use MVC as a template. ![Create a stateleess ASP.NET Core application](https://user-images.githubusercontent.com/1801443/93099063-959e2f80-f675-11ea-805c-eb627e2b9e53.png) ## Setting up the datadog agent Add a new Service Fabric Service to the solution. ![Add new Service Fabric Service](https://user-images.githubusercontent.com/1801443/93102030-04c95300-f679-11ea-89f2-1de6160b5bc2.png) ![Setup the agent container](https://user-images.githubusercontent.com/1801443/93107331-73111400-f67f-11ea-9a5e-06094e775177.png) Replace the ServiceManifest.xml with this: ``` datadog/agent ``` Add the corresponding port bindings to the ServiceManfestImport within ApplicationManifest.xml ``` ``` ## Installing the .NET Tracer The tracer requires machine administrator permissions. Add the SetupAdminUser to the Principals section in the ApplicationManifest.xml. If the Principals section is missing, add it. ``` ``` Within the ServiceManifestImport of the service responsible for deploying the tracer to the cluster, give the Setup script SetupAdminUser as the executing user. ``` ``` Within the ServiceManifest.xml of the service responsible for deploying the Datadog Tracer, add the reference to the install script. ``` DatadogInstall.bat CodePackage ServiceThatDeploysDatadogTracer.exe CodePackage ``` Include the DatadogInstall.bat and DatadogInstall.ps1 scripts in the project responsible for deploying the tracer. Ensure that in the properties of both scripts, you set that they are copied to the output directory. ![Copy to output directory](https://user-images.githubusercontent.com/1801443/93110062-d05a9480-f682-11ea-8fb4-7b266f576f68.png) The latest representation of this install process is here: https://github.com/DataDog/dd-trace-dotnet-asf-sample/tree/master/VotingWeb - [Batch Script](https://github.com/DataDog/dd-trace-dotnet-asf-sample/blob/master/VotingWeb/DatadogInstall.bat) - [Powershell Script](https://github.com/DataDog/dd-trace-dotnet-asf-sample/blob/master/VotingWeb/DatadogInstall.ps1) ---