Observability.AddServiceTracingExporter(IServiceCollection, String) Method

Definition

Adds a service tracing exporter to the service collection. Uses the service-to-service (S2S) endpoint for trace exports.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceTracingExporter(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string? clusterCategory = "production");
static member AddServiceTracingExporter : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddServiceTracingExporter (services As IServiceCollection, Optional clusterCategory As String = "production") As IServiceCollection

Parameters

services
IServiceCollection

The service collection to add to.

clusterCategory
String

The cluster category for the Microsoft Agent 365 exporter options. Defaults to production.

Returns

The updated service collection.

Applies to