You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to have observability when the SDK client is connected vs when it is unable to connect to LaunchDarkly when using a streaming connection.
I would like to be able to visualize connection status in my dashboards so that I could observe LaunchDarkly unreachability alongside any other behavior change I see. This allows me to determine if LaunchDarkly connection state is related to what I'm seeing, without needing to proactively needing to check https://status.launchdarkly.com/. Additionally, using the client to determine connection status will also help identify instances where the issue may lie on my own infra.
Describe the solution you'd like
I'd like new status function on the Client struct. The method might return an enum like below
enumStatus{/// Connection has not been initializedUninitialized,/// This client is operating on offline modeOffline,/// `close` has been called on this connectionClosed,/// The client is currently connectedConnected,/// The client initialized, but is not currently connectedDisconnected,}
Then I could poll the status function, and plot a red line on my graphs when the Disconnected variant is returned. If the Connected enum included a network latency value, that would be even better.
Describe alternatives you've considered
I considered passing in a custom connector to data_source, then calling poll_ready, but this would only give me the status of the connector, and not any actual connection. Although, to create a custom connection builder that also also returns a custom connection type.
https://status.launchdarkly.com/ is an alternative, but that data is not available programmatically, and must be monitored by human processes. It also does not identify when an issue may lie on that path between our infra and LaunchDarkly's infra, rather than wholly within LD's infra.
Additional context
Add any other context about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I would like to have observability when the SDK client is connected vs when it is unable to connect to LaunchDarkly when using a streaming connection.
I would like to be able to visualize connection status in my dashboards so that I could observe LaunchDarkly unreachability alongside any other behavior change I see. This allows me to determine if LaunchDarkly connection state is related to what I'm seeing, without needing to proactively needing to check https://status.launchdarkly.com/. Additionally, using the client to determine connection status will also help identify instances where the issue may lie on my own infra.
Describe the solution you'd like
I'd like new
status
function on theClient
struct. The method might return an enum like belowThen I could poll the
status
function, and plot a red line on my graphs when theDisconnected
variant is returned. If theConnected
enum included a network latency value, that would be even better.Describe alternatives you've considered
I considered passing in a custom connector to
data_source
, then callingpoll_ready
, but this would only give me the status of the connector, and not any actual connection. Although, to create a custom connection builder that also also returns a custom connection type.https://status.launchdarkly.com/ is an alternative, but that data is not available programmatically, and must be monitored by human processes. It also does not identify when an issue may lie on that path between our infra and LaunchDarkly's infra, rather than wholly within LD's infra.
Additional context
Add any other context about the feature request here.
The text was updated successfully, but these errors were encountered: