Language

TracingBuilderExtensions Class

Definition

Extension methods for ITracingBuilder to add or clear ActivityListener registrations.

public ref class TracingBuilderExtensions abstract sealed
public static class TracingBuilderExtensions
type TracingBuilderExtensions = class
Public Module TracingBuilderExtensions
Inheritance
TracingBuilderExtensions

Methods

Name Description
AddListener(ITracingBuilder, String, Action<ActivityListenerBuilder>)

Registers a new ActivityListener identified by name and described by the supplied configure callback.

AddListener(ITracingBuilder, String, Action<IServiceProvider,ActivityListenerBuilder>)

Registers a new ActivityListener identified by name and described by the supplied configure callback, which also receives the resolved IServiceProvider.

ClearListeners(ITracingBuilder)

Removes all ActivityListenerBuilder registrations from the dependency injection container.

DisableTracing(ITracingBuilder, String, String, String, ActivitySourceScopes)

Disables all activities for the given source, operation, listener, and scopes.

DisableTracing(TracingOptions, String, String, String, ActivitySourceScopes)

Disables all activities for the given source, operation, listener, and scopes.

EnableTracing(ITracingBuilder, String, String, String, ActivitySourceScopes)

Enables all activities for the given source, operation, listener, and scopes.

EnableTracing(TracingOptions, String, String, String, ActivitySourceScopes)

Enables all activities for the given source, operation, listener, and scopes.

Applies to