2 instantiations of ActivitySourceOptions
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\ActivitySourceFactory.cs (2)
41ActivitySourceOptions scoped = new(options.Name) 61ActivitySourceOptions options = new(name)
25 references to ActivitySourceOptions
Microsoft.Extensions.Diagnostics (3)
Tracing\DefaultActivitySourceFactory.cs (3)
48protected override ActivitySource CreateCore(ActivitySourceOptions options) 105private bool TryGetCachedMatch(ActivitySourceOptions options, [NotNullWhen(true)] out ActivitySource? match) 177public FactoryActivitySource(ActivitySourceOptions options) : base(options)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Tracing\ActivitySourceScopes.cs (1)
11/// dependency injection with <see cref="System.Diagnostics.ActivitySourceFactory.Create(System.Diagnostics.ActivitySourceOptions)"/> (<see cref="Local"/>).
System.Diagnostics.DiagnosticSource (21)
System\Diagnostics\ActivitySource.cs (3)
43/// Initialize a new instance of the ActivitySource object using the <see cref="ActivitySourceOptions" />. 45/// <param name="options">The <see cref="ActivitySourceOptions" /> object to use for initializing the ActivitySource object.</param> 46public ActivitySource(ActivitySourceOptions options) : this((options ?? throw new ArgumentNullException(nameof(options))).Name, options.Version, options.Tags, options.Scope, options.TelemetrySchemaUrl) {}
System\Diagnostics\ActivitySourceFactory.cs (13)
13/// <see cref="CreateCore(ActivitySourceOptions)"/> to provide the actual creation logic; the framework invariants 21/// <param name="options">The <see cref="ActivitySourceOptions"/> describing the activity source to create.</param> 24/// <exception cref="InvalidOperationException"><see cref="ActivitySourceOptions.Scope"/> is set to a value other than this factory.</exception> 27/// <see cref="ActivitySourceOptions"/> copy with <see cref="ActivitySourceOptions.Scope"/> bound to this factory 28/// and delegates construction to <see cref="CreateCore(ActivitySourceOptions)"/>. The caller-supplied 32public ActivitySource Create(ActivitySourceOptions options) 41ActivitySourceOptions scoped = new(options.Name) 61ActivitySourceOptions options = new(name) 73/// <param name="options">The <see cref="ActivitySourceOptions"/> describing the activity source to create. 74/// <see cref="ActivitySourceOptions.Scope"/> is guaranteed to be set to this factory.</param> 79/// <see cref="ActivitySourceOptions.Scope"/> property has been set to this factory instance; derived classes 82protected abstract ActivitySource CreateCore(ActivitySourceOptions options);
System\Diagnostics\ActivitySourceOptions.cs (5)
16/// Constructs a new instance of <see cref="ActivitySourceOptions"/>. 18/// <param name="name">The name of the <see cref="ActivitySourceOptions"/> object</param> 25/// Get or set the <see cref="ActivitySourceOptions"/> object name. Cannot be null. 34/// The optional <see cref="ActivitySourceOptions"/> version. Defaulted to empty string. 39/// The optional list of key-value pair tags associated with the <see cref="ActivitySourceOptions"/>.