Language

TracingServiceExtensions.AddTracing Method

Definition

Overloads

Name Description
AddTracing(IServiceCollection)

Adds tracing services to the specified IServiceCollection.

AddTracing(IServiceCollection, Action<ITracingBuilder>)

Adds tracing services to the specified IServiceCollection.

AddTracing(IServiceCollection)

Source:
TracingServiceExtensions.cs

Adds tracing services to the specified IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTracing(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTracing(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddTracing : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTracing (services As IServiceCollection) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to add services to.

Returns

The IServiceCollection so that additional calls can be chained.

Applies to

AddTracing(IServiceCollection, Action<ITracingBuilder>)

Source:
TracingServiceExtensions.cs

Adds tracing services to the specified IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTracing(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Tracing::ITracingBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTracing(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Tracing.ITracingBuilder> configure);
static member AddTracing : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Tracing.ITracingBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTracing (services As IServiceCollection, configure As Action(Of ITracingBuilder)) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to add services to.

configure
Action<ITracingBuilder>

A callback to configure the ITracingBuilder.

Returns

The IServiceCollection so that additional calls can be chained.

Applies to