All Products
Search
Document Center

Application Real-Time Monitoring Service:Configure custom interaction events for traces

Last Updated:Mar 11, 2026

When troubleshooting distributed applications, you often need to jump from a trace span to related logs, external dashboards, or saved searches. Interaction events in Trace Explorer add one-click drill-down links to span fields, so you can correlate trace data with other observability signals without switching consoles.

Trace Explorer supports four interaction event types:

Event typeAction
Open the log libraryRedirects to a specified Simple Log Service (SLS) Logstore
Customize HTTP LinkRedirects to a specified HTTP URL
Open from the edit boxDisplays the field value in text or JSON format in a pop-up window
Open Quick SearchRedirects to an SLS saved search

Preset interaction events

Trace Explorer includes built-in events that cover common drill-down scenarios. Review these before creating custom events -- your use case may already be covered.

Preset interaction events
EventEffective fieldDescription
Use the current condition to query the traceAll except Span EventsAppends the field as a query condition
View application detailsserviceNameRedirects to the Overview tab of the application details page
View the services providedspanNameRedirects to the Provided Services tab of the application details page
View instance monitoring detailsIPRedirects to the Instance Monitoring tab of the application details page
View raw trace dataTraceID and SpanIdViews the raw trace data stored in SLS

Create a custom interaction event

If preset events do not cover your use case, create a custom interaction event. Custom events apply at one of two scopes:

  • Service event configuration: The event applies to all traces of the current application.

  • Global event configuration: The event applies to all traces in the current region.

To create a custom interaction event:

  1. On the Trace Explorer page, click a trace ID.

  2. Click a span, then click Event Config in the Span Details section.

    Event Config button in Span Details

  3. In the Drilldown Config panel, select the scope: Service event configuration or Global event configuration.

    Drilldown Config panel

  4. Click Add fields, select a field, and click OK.

    Add fields dialog

  5. Click Add event and select an event type from the drop-down list.

    Add event drop-down

  6. Configure the event parameters and click OK. For parameter details, see Event type reference.

    Event parameter configuration

Trigger a custom interaction event

After you configure an event, you can trigger it from the span details view:

  1. In the Span Details section, hover over a blue field. A tooltip displays the custom interaction events configured for that field.

  2. Click an event name to trigger it.

Triggering an interaction event

Event type reference

Open the log library

Redirects to a specified SLS Logstore when triggered.

Prerequisite: A Logstore is created. For more information, see Manage a Logstore.

ParameterRequiredDescription
Custom NameYesThe name displayed in the tooltip when you hover over the field.
Please select regionYesThe region where the SLS project resides.
Please select the projectYesThe SLS project name.
Please select a log repositoryYesThe SLS Logstore to redirect to.
Open a new windowNoWhether to open the Logstore in a pop-up window.
Time rangeNoThe time range for the Logstore query. See Time range options.
Filter statementNoA filter statement appended before the query statement with the AND operator. Click Add variables to insert field values as filter conditions. Example: traceId=${{traceID}} AND spanId=${{spanID}}.

Customize HTTP Link

Redirects to a specified HTTP URL when triggered.

Prerequisite: An HTTP URL is available.

ParameterRequiredDescription
Custom NameYesThe name displayed in the tooltip when you hover over the field.
agreementYesThe URL protocol: HTTP or HTTPS.
Link addressYesThe target URL path. Click Add variables to insert field values as path parameters. When triggered, field values replace the corresponding variables in the URL.
Whether to transcodeNoWhether to URL-encode the link.
Open a new windowNoWhether to open the URL in a pop-up window.

Open from the edit box

Displays the field value in text or JSON format in a pop-up window when triggered.

ParameterRequiredDescription
Custom NameYesThe name displayed in the tooltip when you hover over the field.
Text typeNoThe display format for the field value: text or JSON.

Open Quick Search

Redirects to an SLS saved search when triggered.

Prerequisites:

  • A saved search is created in SLS. For more information, see Saved search.

  • If you use variables in the interaction event, make sure the variables are configured in the query statement of the saved search. For more information, see Variables.

ParameterRequiredDescription
Custom NameYesThe name displayed in the tooltip when you hover over the field.
Please select regionYesThe region where the SLS project resides.
Please select the projectYesThe SLS project name.
Please select Quick SearchYesThe saved search to redirect to.
Open a new windowNoWhether to open the saved search in a pop-up window.
Time rangeNoThe time range for the saved search query. See Time range options.
Filter statementNoA filter statement appended before the query statement with the AND operator. Click Add variables to insert field values as filter conditions.
Dynamic variablesNoOverride variables in the saved search query statement. If a variable name matches one in the query statement, the value specified here takes precedence. You can add up to 5 dynamic variables and 5 static variables.
Static variablesNoStatic key-value pairs that replace placeholder variables in the saved search.

Dynamic variable fields:

FieldDescription
VariableThe variable name.
Variable Value ColumnThe column whose values dynamically replace the variable in the saved search.

Static variable fields:

FieldDescription
VariableThe variable name.
ValueA fixed value that replaces the placeholder variable in the saved search.

Time range options

Both Open the log library and Open Quick Search support the following time range modes:

ModeBehavior
DefaultUses the default time range: 15 Minutes (Relative).
Use Query TimeUses the time range specified in Trace Explorer at the moment the event is triggered.
Data Point TimeStart time = Time Range Field value minus Time range field difference value. End time = Time Range Field value plus Time range field difference value.
Relative time rangeUses the specified relative time range.
Time frameUses the hourly points within the specified time frame.

Redirect through a virtual domain name

If you access Trace Explorer through a virtual domain name -- for example, an ARMS console page embedded in a self-managed web application -- triggering Open the log library or Open Quick Search redirects to the SLS logon page instead of the SLS console. To work around this, use Customize HTTP Link to redirect through the SLS virtual domain name:

  1. Create a Customize HTTP Link event.

  2. Select the HTTPS protocol and enter the URL of the SLS console page in the Link Address field.

  3. Replace the domain sls.console.alibabacloud.com in the URL with sls4servims.console.alibabacloud.com (the SLS virtual domain name). For more information, see Embed console pages and share log data.

    Virtual domain name URL configuration

  4. To pass query parameters to the Logstore, click Add variables to insert them as variables.

The following example URL opens a Logstore named test-logstore in the project test-project and searches for the current trace:

https://sls.console.alibabacloud.com/lognext/project/test-project/logsearch/test-logstore?queryString=traceId=${{traceID}}