Основные методы
Основные методы
Основные методы
Основные методы
/// <summary> /// Adds OpenTracing instrumentation for CoreFx (BCL). /// </summary> public static ITracingService AddOpenTracing(ITracer tracer, ILoggerFactory loggerFactory, Action <IOpenTracingBuilder> builder = null) { IServiceCollection services = new ServiceCollection(); services.AddSingleton <ITracer>(tracer); services.AddSingleton <ILoggerFactory>(loggerFactory); var serviceProvider = services.AddOpenTracing(builder).BuildServiceProvider(); return(serviceProvider.GetRequiredService <ITracingService>()); }