Skip to content

PavelStefanov/Hangfire.OpenTracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangfire.OpenTracing

Hangfire.OpenTracing provides integration with OpenTracing.

Installation

To install Hangfire.OpenTracing, run the following command in the Nuget Package Manager Console:

Install-Package Hangfire.OpenTracing

Using

You can add OpenTracing integration by invoking UseOpenTracingFilter extension method on IGlobalConfiguration.

Example

public void ConfigureServices(IServiceCollection services)
{
    // make sure you configure OpenTracing before 
    services.AddHangfire(c =>
    {
        // ...

        // Add OpenTracing integration
        c.UseOpenTracingFilter(options => 
        {
            // these are the defaults
            options.ComponentName = "Hangfire";
            options.IncludeExceptionDetails = false;
        });
    });
    services.AddHangfireServer();
}

About

OpenTracing support for Hangfire

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages