Class TracerProviderBuilderExtensions
Extension method for setting up Npgsql OpenTelemetry tracing.
Inheritance
object
TracerProviderBuilderExtensions
Namespace: Npgsql
Assembly: Npgsql.OpenTelemetry.dll
Syntax
public static class TracerProviderBuilderExtensions
Methods
| Improve this Doc View SourceAddNpgsql(TracerProviderBuilder, Action<NpgsqlTracingOptions>?)
Subscribes to the Npgsql activity source to enable OpenTelemetry tracing.
Declaration
public static TracerProviderBuilder AddNpgsql(this TracerProviderBuilder builder, Action<NpgsqlTracingOptions>? options = null)
Parameters
Type | Name | Description |
---|---|---|
TracerProviderBuilder | builder | |
Action<><NpgsqlTracingOptions>? | options |
Returns
Type | Description |
---|---|
TracerProviderBuilder |