No results for ""
EXPAND ALL
  • Home
  • API docs

GIVE DOCS FEEDBACK

The context details page

Read time: 3 minutes
Last edited: Mar 22, 2024

Overview

This topic explains what the context details page is. The context details page gives you a detailed view of a context and lets you customize its experience from one screen.

To open the details page for a context, click on the context name from the Contexts list.

This is an example of a multi-context details page:

The details page for a multi-context.
The details page for a multi-context.

Attributes

The "Attributes" section displays all of the context attributes associated with the selected context instance version. A context instance version is a context instance that's recorded from a unique source application or LaunchDarkly SDK. It includes only the context attributes you provide in the evaluation call. To learn more, read Context instances.

This illustration shows a flag evaluating two instance versions of the same context:

Two instance versions of the same context.
Two instance versions of the same context.

To view attributes from a different context instance version, choose a different version from the "From source" menu:

The "From source" menu with two context instance versions displayed.
The "From source" menu with two context instance versions displayed.

To learn more, read Context attributes.

Segments

The "Segments" section lists any segments the context is a part of. Click on the segment name to open the segment's Targeting tab. To learn more, read Segments.

Instances

The "Instances" section lists the instances in which the context has appeared, and when LaunchDarkly last encountered each instance:

The "Instances" section with two instances.
The "Instances" section with two instances.

Click on an individual instance name to open the instance details page. The instance details page lists the context kinds, attributes, segments, and expected flag variations for that particular context instance.

You can also use the REST API: Get context instances

Deleting a context instance

You can delete a context instance by clicking on an individual instance name to open the instance details page, then clicking Delete:

A context instance detail page with the "Delete" button called out.
A context instance detail page with the "Delete" button called out.

Deleting a context instance deletes all versions of that instance. Deleting context instances from the Contexts list does not decrease your account usage.

You can also use the REST API: Delete context instances

Expected flag variations

The "Expected flag variations" section lists the variation you can expect that context instance to receive for each flag within your current project and environment. You can use your SDK's flag evaluation reason feature to get more information about the flag variations LaunchDarkly serves.

Try it in your SDK: Flag evaluation reasons

Modifying feature flag variations for a context

You can modify the feature flag variation a context receives. To do this:

  1. Find the flag you want to modify in the "Expected flag variations" section.

  2. Select a new variation from the Variation menu next to the flag:

    The "Expected flag variations" section with a variation called out.
    The "Expected flag variations" section with a variation called out.
  3. (Optional) To remove individual targeting, either:

  • change to the variation from the Variation dropdown, or
  • click the "Evaluation reason" link to remove the individual target from the flag's Targeting tab.
  1. Click Save changes.
Flag targeting changes are only available for individual contexts.

You cannot make targeting changes to context instances with multiple contexts. That option is not available on the instance details page with multiple contexts.