Created
October 1, 2018 16:31
-
-
Save jaycdave88/8d5e2a02634df897c8dbc02aab34b6c4 to your computer and use it in GitHub Desktop.
Datadog .NET APM manual instrument example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager ) | |
{ | |
using (var scope = Tracer.Instance.StartActive("web.request")) | |
{ | |
var span = scope.Span; | |
span.Type = "web"; | |
span.ResourceName = Request.Url.ToString(); | |
span.SetTag("service", "fse-dotNet"); | |
UserManager = userManager; | |
SignInManager = signInManager; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment