Skip to content

aspnetcore middleware that sets custom tags in spans as part of the request lifecycle

Notifications You must be signed in to change notification settings

10thmagnitude/dotnetcore-datadog-tracing-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

dotnetcore-datadog-tracing-middleware

aspnetcore middleware that sets custom tags in spans as part of the request lifecycle

use

In Startup.cs, use the extension to add the middleware into the stack before MVC:

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    if (env.IsDevelopment())
    {
        app.UseDeveloperExceptionPage();
    }
    else
    {
        app.UseHsts();
    }

    app.UseDataDogTracing("myCoolService");
    app.UseMvc();
}

About

aspnetcore middleware that sets custom tags in spans as part of the request lifecycle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages