Class ObservabilityExtensions
Static class containing extension methods for configuring observability
Inherited Members
Namespace: LaunchDarkly.Observability
Assembly: LaunchDarkly.Observability.dll
Syntax
public static class ObservabilityExtensions
Methods
| Edit this page View SourceAddLaunchDarklyObservability(IServiceCollection, string, Action<ObservabilityConfigBuilder>)
Add the LaunchDarkly Observability services. This function would typically be called by the LaunchDarkly Observability plugin. This should only be called by the end user if the Observability plugin needs to be initialized earlier than the LaunchDarkly client.
Declaration
public static IServiceCollection AddLaunchDarklyObservability(this IServiceCollection services, string sdkKey, Action<ObservabilityConfig.ObservabilityConfigBuilder> configure)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection |
string | sdkKey | The LaunchDarkly SDK |
Action<ObservabilityConfig.ObservabilityConfigBuilder> | configure | A method to configure the services |
Returns
Type | Description |
---|---|
IServiceCollection | The service collection |