LaunchDarkly Integration
We've made it easy to use LaunchDarkly with Highlight.
The integration will allow you to report Feature Flag Evaluations to Highlight and to send the LaunchDarkly identification context to your Highlight session.
Conversely, it will hook into the Highlight SDK and send the user context to LaunchDarkly.
H.init("<YOUR_PROJECT_ID>", {}); const ldClient = initialize("<YOUR_LD_CLIENT_TOKEN>"); H.registerLD(ldClient);
Events forwarded to LaunchDarkly Client
Highlight APIs forwarded to LaunchDarkly
init()
Calling H.init()
will forward the data to LaunchDarkly's track()
as a $ld:telemetry:initialize
event
to represent the initialization of a session.
track()
Calling H.track()
will forward the data to LaunchDarkly's track()
as a $ld:telemetry:track
event.
consumeError()
Calling H.consumeError()
will forward the data to LaunchDarkly's track()
as a $ld:telemetry:error
event.
recordMetric()
Calling H.recordMetric()
will forward the metric value to LaunchDarkly's track()
as a $ld:telemetry:metric
event.
LaunchDarkly APIs forwarded to Highlight
ldClient.identify()
Calling ldClient.identify()
will
forward the data to Highlight's H.identify()
.
ldClient.variation()
Calling ldClient.variation()
will
forward the data to Highlight's H.track()
and record the flag evaluation as a span in the current trace.