Files
help365/platform/server-script-tracing.html
2025-05-26 16:15:30 +04:00

295 lines
54 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<title>Трассировка серверных скриптов</title>
<meta name="generator" content="Help+Manual" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Инструмент Трассировка позволяет анализировать выполнение серверных скриптов, чтобы выявить причины задержек и&nbsp;устранить сбои. С&nbsp;его помощью в системе происходит сбор данных..." />
<meta name="picture" content="" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Cправка по Low-code платформе ELMA365" />
<meta property="og:url" content="https://elma365.com/ru/help" />
<meta property="og:image" content="" />
<meta property="og:site_name" content="ELMA365" />
<link rel="icon" href="favicon.png" type="image/png" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./jquery-ui.min.css" />
<link rel="stylesheet" href="default.css" />
<link rel="stylesheet" href="./search-yandex.css" />
<link rel="stylesheet" href="./article.css" />
<link rel="stylesheet" href="./glossary.css" />
<link rel="stylesheet" href="./theme.css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="helpman_settings.js"></script>
<script type="text/javascript" src="helpman_topicinit.js"></script>
<script type="text/javascript" src="highlight.js"></script>
<script type="text/javascript">
$(document).ready(function(){highlight();});
</script>
</head>
<body>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M6ETBEC1R9"></script><script>window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date()); gtag('config', 'G-M6ETBEC1R9');</script>
<script>!function(e,t,c,n,r,a,m){e.ym=e.ym||function(){(e.ym.a=e.ym.a||[]).push(arguments)},e.ym.l=1*new Date;for(var s=0;s<document.scripts.length;s++)if(document.scripts[s].src===n)return;a=t.createElement(c),m=t.getElementsByTagName(c)[0],a.async=1,a.src=n,m.parentNode.insertBefore(a,m)}(window,document,"script","https://mc.yandex.ru/metrika/tag.js"),ym(83179930,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:!0})</script><noscript><div><img alt=""src=https://mc.yandex.ru/watch/83179930 style=position:absolute;left:-9999px></div></noscript>
<header class="header elma-365">
<div class="container">
<a class="header__logo" href="https://elma365.com/ru/help">
<img src="./logo.svg" alt="header logo">
</a>
<!-- <div class="hero__search-form" id="search-panel">
<form class="search-form" onsubmit="ym(83179930,'reachGoal','poisk')">
<label class="search-form__label">
<span id="reset-search" class="search__icon"></span>
<input class="search-form__input" type="text">
</label>
<input class="search-form__submit" type="submit" value="Submit">
</form>
</div> -->
<div class="hero__search-form" id="search-panel"> <form class="search-form"> <label class="search-form__label"> <span id="reset-search" class="search__icon"></span> <input class="search-form__input" type="text"> </label> <input class="search-form__submit" type="submit" value="Submit"> </form> </div>
<div class="hero__search">
<a href="#" id="search-icon" class="hero__search-icon">
<img src="search-icon-white.svg" alt="search string">
</a>
<a href="#" id="side-menu-icon" class="hero__side-icon">
<img src="side_menu.svg" alt="side menu">
</a>
</div>
<div class="header__navi">
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a class="project-link" href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li><li><a class="project-link" href="https://elma365.com/ru/help/business_solutions/-elma365-store.html">Бизнес-решения</a></li></ul></span></li><li><a href="https://api.elma365.com/ru/"target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/"target="_blank">SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/" target="_blank">Академия</a></li><li><a href="https://elma365.com/ru/" target="_blank">Сайт ELMA365</a></li></ul>
</div>
</div>
</header>
<main class="main container">
<aside class="sidebar" id="sidebar">
<div class="sidebar__header">
<a class="header__logo" href="https://elma365.com/ru/help">
<img src="./logo-light.svg">
</a>
<span class="sidebar__close elma-365-close" id="close"></span>
</div>
<div class="sidebar__wrapper" id="side-menu">
</div>
</aside>
<article class="article" id="article">
<div class="article-inner">
<div class="content">
<header class="article__header">
<div class="article__bread" style="display:flex; gap:10px;">
<span id="subcategory" class="search-res__item-category search-res__item-category_subcategory subcategory article__badge"></span>
<div class="topic__breadcrumbs">
<p>Администрирование системы&nbsp; &gt; <a href="devtools.html">Инструменты разработчика</a> / Трассировка серверных скриптов</p>
</div>
</div>
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">Трассировка серверных скриптов</span></h1>
</div>
</header>
<section class="article__content">
<div class="scroll-top-inner">
<a href="#h1-article" class="scroll-top"></a>
</div>
<!-- Placeholder for topic body. -->
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Инструмент </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Трассировка</span><span style="font-size: 15px; font-family: Inter;"> позволяет анализировать выполнение серверных скриптов, чтобы выявить причины задержек и устранить сбои. С его помощью в системе происходит сбор данных о порядке вызова функций, времени исполнения каждого действия и возникших ошибках.</span></p>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Данные сохраняются в виде трейсов — записей, в карточках которых можно ознакомиться с диаграммой пользовательского запроса и информацией о каждом его шаге. Все трейсы сохраняются в разделе </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Администрирование &gt; Инструменты разработчика</span><span style="font-size: 15px; font-family: Inter;">. Кроме того, информацию можно посмотреть в компоненте, по которому зафиксирован трейс.</span></p>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Сбор данных доступен по серверным скриптам:</span></p>
<ul style="list-style-type:disc">
<li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">методов API в модулях;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">действий в БП;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">обработчиков событий;</span></li><li style="line-height: 1.28; page-break-after: avoid; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">бизнес-процессов;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">виджетов.</span></li></ul>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Чтобы оптимизировать процесс сбора данных, вы можете выбрать, по каким компонентам системы включить трассировку. Например, собирать данные только по скриптам решения, над которым сейчас работаете.</span></p>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Трейсы хранятся в системе в течение ограниченного срока. Вы можете экспортировать их, например, чтобы передать информацию об ошибке другому специалисту. Затем их можно повторно загрузить в ELMA365 для изучения</span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></p>
<h2 class="p_Heading2"><span class="f_Heading2">Как использовать трассировку</span></h2>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Вы можете применять трассировку в следующих случаях:</span></p>
<ul style="list-style-type:disc">
<li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">чтобы узнать подробности возникшей ошибки и настроить её обработку;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">чтобы устранить причины медленного выполнения определённых участков скрипта и оптимизировать работу пользователей;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">чтобы оценить эффективность изменений после доработки решения</span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></li></ul>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Рассмотрим, как использовать результаты трассировки, на примере оптимизации скриптов пользовательского бизнес‑процесса:</span></p>
<ol style="list-style-type:decimal">
<li value="1" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">Включите трассировку и добавьте бизнес-процесс в список отслеживаемых компонентов.</span></li><li value="2" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">Получите данные для анализа. Для этого можно использовать скрипты, имитирующие взаимодействие пользователей с процессом, или отслеживать реальную работу сотрудников</span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></li><li value="3" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">Проанализируйте данные трейсов. Обратите внимание на шаги, выполнение которых постоянно занимает длительное время, а также на повторяющиеся ошибки. Вы можете экспортировать трейсы, чтобы вернуться к их анализу позже.</span></li><li value="4" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">Внесите улучшения в скрипты процесса.</span></li><li value="5" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">Повторите шаги 13, чтобы снова проверить скорость выполнения скриптов и убедиться, что ошибки устранены. </span></li><li value="6" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">После завершения оптимизации можно прекратить сбор данных по бизнес-процессу, чтобы трейсы не занимали </span><span style="font-size: 15px; font-family: Inter; color: #1155cc;"><a href="360014165012.html" class="topiclink">место на диске</a></span><span style="font-size: 15px; font-family: Inter;">. Для этого исключите процесс из списка компонентов для отслеживания.</span></li></ol>
<h2 class="p_Heading2"><span class="f_Heading2">Включить и настроить трассировку</span></h2>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало&nbsp;внимание</span></p>
<p style="line-height: 1.28; page-break-after: avoid; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Настройка трассировки доступна только пользователям, входящим в группу </span><span style="font-size: 15px; font-family: Inter; color: #0563c1;"><a href="360006871932.html#administrators" class="topiclink">Администраторы</a></span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец&nbsp;внимание</span></p>
<p style="line-height: 1.28; page-break-after: avoid; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Чтобы использовать трассировку:</span></p>
<ol style="list-style-type:upper-roman">
<li value="1" style="line-height: 1.28;"><span style="font-size: 15px; font-family: Inter;">Перейдите в раздел </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Администрирование &gt; Инструменты разработчика</span><span style="font-size: 15px; font-family: Inter;"> и в блоке </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Инструменты</span><span style="font-size: 15px; font-family: Inter;"> выберите </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Трассировка</span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></li><li value="2" style="line-height: 1.28;"><span style="font-size: 15px; font-family: Inter;">В правом верхнем углу страницы нажмите значок шестерёнки.</span></li></ol>
<p style="line-height: 1.28; margin: 0 0 0 34px;"><img alt="server-script-tracing-1" width="590" height="274" style="margin:0;width:590px;height:274px;border:none" src="server-script-tracing-1.png"/></p>
<ol style="list-style-type:upper-roman" start="3">
<li value="3" style="line-height: 1.28; page-break-after: avoid; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">На странице настроек включите режим трассировки.</span></li></ol>
<p style="line-height: 1.28; margin: 0 0 0 34px;"><img alt="server-script-tracing-2" width="537" height="299" style="margin:0;width:537px;height:299px;border:none" src="server-script-tracing-2.png"/></p>
<ol style="list-style-type:upper-roman" start="4">
<li value="4" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">Укажите, в рамках каких компонентов системы нужно отслеживать выполнение серверных скриптов: выберите решения, модули, разделы, а также отдельные их компоненты — бизнес‑процессы, виджеты, скрипты и т. д.</span></li></ol>
<p style="line-height: 1.28; margin: 0 0 0 34px;"><span style="font-size: 15px; font-family: Inter;">Для этого в поле </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Сохранять трейсы для объектов</span><span style="font-size: 15px; font-family: Inter;"> нажмите на выпадающее меню и установите флажок напротив компонентов в списке. При этом вы можете:</span></p>
<p style="line-height: 1.28; margin: 0 0 0 34px;"><img alt="server-script-tracing-3" width="480" height="365" style="margin:0;width:480px;height:365px;border:none" src="server-script-tracing-3.png"/></p>
<ol style="list-style-type:upper-roman" start="4"><ul style="list-style-type:disc">
<li class="p_Normal">использовать поиск по названию;</li><li class="p_Normal">выполнять действия с вложенными компонентами:<ul style="list-style-type:circle">
<li class="p_Normal"><img alt="tracing-select-all-icon" width="20" height="17" style="margin:0;width:20px;height:17px;border:none" src="tracing-select-all-icon.png"/> — выделить все компоненты;</li><li class="p_Normal"><img alt="tracing-deselect-all-icon" width="20" height="17" style="margin:0;width:20px;height:17px;border:none" src="tracing-deselect-all-icon.png"/> — отменить выделение;</li><li class="p_Normal"><img alt="tracing-collapse-icon" width="21" height="20" style="margin:0;width:21px;height:20px;border:none" src="tracing-collapse-icon.png"/> — свернуть список компонентов;</li><li class="p_Normal"><img alt="tracing-expand-icon" width="20" height="19" style="margin:0;width:20px;height:19px;border:none" src="tracing-expand-icon.png"/><span class="f_ImageCaption"> </span>— развернуть список.</li></ul>
<li class="p_Normal"><span style="font-size: 15px; font-family: Inter;">сбросить список выбранных компонентов</span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></li></ul>
<li value="5" class="p_Normal"><span style="font-size: 15px; font-family: Inter;">После указания компонентов для трассировки нажмите </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Применить</span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></li><li value="6" class="p_Normal"><span style="font-size: 15px; font-family: Inter;">На странице настроек в полях </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Политика хранения</span><span style="font-size: 15px; font-family: Inter;"> и </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Политика хранения трейсов с ошибками</span><span style="font-size: 15px; font-family: Inter;"> указывается срок, после которого записи удаляются из системы:</span><ul style="list-style-type:disc">
<li class="p_Normal"><span style="font-size: 15px; font-family: Inter;">для ELMA365 SaaS — установлен срок 15 минут. Его нельзя изменить;</span></li><li class="p_Normal"><span style="font-size: 15px; font-family: Inter;">для ELMA365 On-Premises — по умолчанию задан срок 10 дней. Это максимальное значение, его можно уменьшить.</span></li></ul>
<li value="7" class="p_Normal"><span style="font-size: 15px; font-family: Inter;">Также на странице настроек можно узнать объём сохранённых данных и освободить место на диске, нажав </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Очистить все трейсы</span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></li></ol>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">После включения трассировки вы увидите:</span></p>
<ul style="list-style-type:disc">
<li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">все сохранённые трейсы на странице </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Трассировка</span><span style="font-size: 15px; font-family: Inter;">;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">трейсы по определённому компоненту:</span><ul style="list-style-type:circle">
<li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">по экземпляру бизнес-процесса — в его </span><span style="font-size: 15px; font-family: Inter; color: #0563c1;"><a href="360012498891.html#tracing" class="topiclink">карточке</a></span><span style="font-size: 15px; font-family: Inter;">, нажав на верхней панели значок </span><img alt="tracing-process-instance-icon" width="17" height="15" style="margin:0;width:17px;height:15px;border:none" src="tracing-process-instance-icon.png"/><span style="font-size: 15px; font-family: Inter;">;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">по действию в БП — перейдя на странице управления модулем на вкладку </span><span style="font-size: 15px; font-family: Inter; color: #0563c1;"><a href="script-activity.html#tracing" class="topiclink">Действия в БП</a></span><span style="font-size: 15px; font-family: Inter;"> и открыв действие;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">по обработчикам событий — в настройках модуля на вкладке </span><span style="font-size: 15px; font-family: Inter; color: #0563c1;"><a href="events_processing.html#tracing" class="topiclink">Обработка событий</a></span><span style="font-size: 15px; font-family: Inter;">;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">по методам API в модуле — в настройках модуля на вкладке </span><span style="font-size: 15px; font-family: Inter; color: #0563c1;"><a href="extention-api.html#tracing" class="topiclink">Методы API</a></span>;</li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 0;"><span style="font-size: 15px; font-family: Inter;">по виджету — из отчёта </span><span style="font-size: 15px; font-family: Inter; color: #0563c1;"><a href="devtools-report.html#tracing" class="topiclink">Инструменты разработчика</a></span><span style="font-size: 15px; font-family: Inter;">, нажав </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Перейти в трейс</span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></li></ul></li></ul>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало&nbsp;примечание</span></p>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Примечание</span></p>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Формирование результатов трассировки в системе происходит с задержкой от нескольких десятков секунд до нескольких минут. Не сразу могут отобразиться:</span></p>
<ul style="list-style-type:disc">
<li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">трейсы по выполненному скрипту;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">информация по отдельным функциям и действиям в карточке зафиксированного трейса.</span></li></ul>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец&nbsp;примечание</span></p>
<h2 class="p_Heading2"><span class="f_Heading2">Работа со страницей «Трассировка»</span></h2>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">В разделе </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Администрирование &gt; Инструменты разработчика </span><span style="font-size: 15px; font-family: Inter;">на странице</span><span style="font-size: 15px; font-family: Inter; font-weight: bold;"> Трассировка </span><span style="font-size: 15px; font-family: Inter;">можно открыть трейсы для просмотра, а также экспортировать их, чтобы вернуться к анализу данных позже</span><span style="font-size: 15px; font-family: 'Times New Roman',Times,Georgia,serif;">.</span></p>
<h3 class="p_Heading3"><span class="f_Heading3">Поиск трейсов</span></h3>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Чтобы найти нужную запись, можно использовать:</span></p>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><img alt="server-script-tracing-4" width="777" height="477" style="margin:0;width:777px;height:477px;border:none" src="server-script-tracing-4.png"/></p>
<ol style="list-style-type:decimal">
<li value="1" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-weight: bold;">Поиск по идентификатору трейса</span> — нажмите в правом верхнем углу страницы значок лупы, вставьте идентификатор в появившееся поле и нажмите <span style="font-weight: bold;">Enter</span>. Откроется <a href="server-script-tracing.html#trace-content" class="topiclink">карточка трейса</a>.</li><li value="2" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-weight: bold;">Фильтры</span> — укажите параметры для поиска трейсов:<ul style="list-style-type:disc">
<li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Типы объектов</span><span style="font-size: 15px; font-family: Inter;"> — укажите, по каким типам компонентов отобразить записи: методам API, действиям в бизнес‑процессах, обработчикам событий, бизнес‑процессам, виджетам;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Объекты конфигурации </span><span style="font-size: 15px; font-family: Inter;">— выберите определённые компоненты системы, по которым нужно отобразить трейсы;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Тип трейсов </span><span style="font-size: 15px; font-family: Inter;">— выберите, какие записи отобразить на странице: все или только с ошибками;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Период </span><span style="font-size: 15px; font-family: Inter;">— задайте временной промежуток, к которому относятся записи. В списке отобразятся все трейсы, в которых хотя бы один шаг выполнялся в течение выбранного периода; </span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Продолжительность </span><span style="font-size: 15px; font-family: Inter;">— введите длительность отслеживаемого действия в минутах, секундах и миллисекундах, например, не менее </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">30с</span><span style="font-size: 15px; font-family: Inter;"> и не более </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;"></span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace;">.</span></li></ul></li></ol>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Чтобы увидеть записи, подходящие под заданные условия, нажмите </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Поиск</span><span style="font-size: 15px; font-family: Inter;">. Затем выберите в списке запись, чтобы открыть <a href="server-script-tracing.html#trace-content" class="topiclink">карточку трейса</a>.</span></p>
<h3 class="p_Heading3"><span class="f_Heading3">Экспорт трейсов &nbsp; </span></h3>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Вы можете сохранять трейсы на ПК. Это позволяет повторно посмотреть определённую ошибку, даже если запись удалена со страницы </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Трассировка</span><span style="font-size: 15px; font-family: Inter;">, или передать данные для анализа другому специалисту.</span></p>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Экспортировать можно:</span></p>
<ul style="list-style-type:disc">
<li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">определённый трейс, открыв его </span><span style="font-size: 15px; font-family: Inter; color: #0563c1;"><a href="server-script-tracing.html#trace-content" class="topiclink">карточку</a></span><span style="font-size: 15px; font-family: Inter;"> и нажав значок </span><img alt="download-button" width="21" height="21" style="margin:0;width:21px;height:21px;border:none" src="download-button.png"/>;</li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">несколько трейсов одним архивом. Для этого:</span></li></ul>
<ol style="list-style-type:decimal">
<li value="1" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">Откройте страницу</span><span style="font-size: 15px; font-family: Inter; font-weight: bold;"> Трассировка</span><span style="font-size: 15px; font-family: Inter;"> и установите флажок напротив нужных записей в списке.</span></li><li value="2" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">Нажмите </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Скачать трейсы</span><span style="font-size: 15px; font-family: 'Times New Roman',Times,Georgia,serif;">.</span></li></ol>
<p style="line-height: 1.28; margin: 0 0 11px 34px;"><img alt="server-script-tracing-5" width="750" height="229" style="margin:0;width:750px;height:229px;border:none" src="server-script-tracing-5.png"/></p>
<ol style="list-style-type:decimal">
<li value="3" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">Сохраните сформированный </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">.zip</span><span style="font-size: 15px; font-family: Inter;">-архив с </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">.json</span><span style="font-size: 15px; font-family: Inter;">-файлом трейсов на компьютер.</span></li></ol>
<h3 class="p_Heading3"><a id="import" class="hmanchor"></a><span class="f_Heading3">Импорт трейсов</span></h3>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Загрузите в ELMA365 экспортированные трейсы, чтобы повторно открыть их карточки. Обратите внимание, трейсы импортируются только для просмотра и не сохраняются в системе.</span></p>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Для этого:</span></p>
<ol style="list-style-type:decimal">
<li value="1" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">На странице </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Трассировка</span><span style="font-size: 15px; font-family: Inter;"> нажмите в правом верхнем углу значок </span><img alt="tracing-upload-icon" width="18" height="17" style="margin:0;width:18px;height:17px;border:none" src="tracing-upload-icon.png"/>.</li><li value="2" style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">В открывшемся окне выберите архив формата </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">.zip</span><span style="font-size: 15px; font-family: Inter;"> или </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">.json</span><span style="font-size: 15px; font-family: Inter;">-файл с трейсами</span><span style="font-size: 15px; font-family: 'Times New Roman',Times,Georgia,serif;">.</span></li></ol>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">После завершения импорта откроется список записей, который выглядит так же, как на странице </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Трассировка</span><span style="font-size: 15px; font-family: Inter;">. Чтобы посмотреть данные трейса, нажмите на его название.</span></p>
<h2 class="p_Heading2"><a id="trace-content" class="hmanchor"></a><span class="f_Heading2">Карточка трейса</span></h2>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Открыв трейс, вы увидите диаграмму, на которой отображаются шаги выполнения скрипта. Все действия и вызванные функции показаны в виде цветных отрезков с сохранением вложенности.</span></p>
<p style="line-height: 1.28; page-break-after: avoid; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">Вы можете проанализировать длительность выполнения каждого запроса, а также изучить ошибки, используя информацию в карточке: </span></p>
<p style="line-height: 1.28; page-break-after: avoid; margin: 0 0 11px 0;"><img alt="server-script-tracing-6" width="759" height="321" style="margin:0;width:759px;height:321px;border:none" src="server-script-tracing-6.png"/></p>
<ol style="list-style-type:upper-roman">
<li value="1" style="line-height: 1.28;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Строка поиска</span><span style="font-size: 15px; font-family: Inter;"> — поиск выполняется по всем полям трейса. Например, укажите название функции, чтобы узнать длительность запроса, или введите текст ошибки, чтобы найти шаг, на котором она произошла. Для переключения между результатами используйте стрелки рядом со строкой поиска.</span></li><li value="2" style="line-height: 1.28;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Старт и длительность </span><span style="font-size: 15px; font-family: Inter;">— дата и время, когда скрипт начал выполняться, а также продолжительность выполнения в секундах</span><span style="font-size: 15px; font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';">.</span></li><li value="3" style="line-height: 1.28;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Карта трейса</span><span style="font-size: 15px; font-family: Inter;"> — выделите промежуток на временной шкале, чтобы на диаграмме отобразились только входящие в него действия. Это позволит детально изучить определённый участок скрипта.</span></li><li value="4" style="line-height: 1.28;"><span style="font-size: 15px; font-family: Inter; font-weight: bold;">Операции</span><span style="font-size: 15px; font-family: Inter;"> — дерево всех выполненных действий. Нажмите на название шага, чтобы посмотреть подробную информацию: атрибуты функции, произошедшие события и ошибки</span><span style="font-size: 15px; font-family: Arial,'Lucida Sans Unicode','Lucida Grande','Lucida Sans';">.</span><span style="font-size: 15px; font-family: Inter;"> Данные отобразятся под диаграммой и могут выглядеть так:</span></li></ol>
<p style="line-height: 1.28; margin: 0 0 11px 34px;"><img alt="server-script-tracing-7" width="699" height="326" style="margin:0;width:699px;height:326px;border:none" src="server-script-tracing-7.png"/></p>
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 15px; font-family: Inter;">В карточке трейса также можно:</span></p>
<ul style="list-style-type:disc">
<li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">скопировать ссылку на трейс, нажав рядом с его идентификатором значок </span><img alt="copy-icon" width="13" height="15" style="margin:0;width:13px;height:15px;border:none" src="copy-icon.png"/><span class="f_ImageCaption">. </span><span style="font-size: 15px; font-family: Inter;">По ссылке запись может открыть любой сотрудник, даже если он не входит в группу </span><span style="font-size: 15px; font-family: Inter; color: #0563c1;"><a href="360006871932.html#administrators" class="topiclink">Администраторы</a></span><span style="font-size: 15px; font-family: Inter;">;</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-size: 15px; font-family: Inter;">сохранить трейс на компьютер в виде архива с </span><span style="font-size: 15px; font-family: Inter; font-weight: bold;">.json</span><span style="font-size: 15px; font-family: Inter;">-файлом, нажав рядом со строкой поиска </span><img alt="download-button" width="21" height="21" style="margin:0;width:21px;height:21px;border:none" src="download-button.png"/><span class="f_ImageCaption">. </span><span style="font-size: 15px; font-family: Inter;">После этого запись можно </span><span style="font-size: 15px; font-family: Inter; color: #0563c1;"><a href="server-script-tracing.html#import" class="topiclink">импортировать в ELMA365</a></span><span style="font-size: 15px; font-family: Inter;"> для повторного просмотра, даже если она удалена из системы.</span></li></ul>
<div class="bottom-nav">
<a id="prev-link" class="topic__navi_prev" href="low-code-ci-cd.html">
<span class="bottom-nav__arrow bottom-nav__arrow--prev"></span> <span
class="bottom-nav__link">low-code-ci-cd.html</span>
</a>
<a id="next-link" class="topic__navi_next" href="licensing-elma365.html">
<span class="bottom-nav__link">licensing-elma365.html</span> <span
class="bottom-nav__arrow bottom-nav__arrow--next"></span>
</a>
</div>
<!-- добавляет на страницу строку блок Была ли статья полезной? -->
<div class="feedback-wrap"><div class="feedback" id="feedback"><span><b>Была ли статья полезной?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx">Спасибо за ваш отзыв!</div><div id="feedback-success-popup"><div class="wrap"><button type="button" class="feedback-popup-close">×</button><svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_212_2187)"><path d="M22 0.6875C10.2294 0.6875 0.6875 10.2294 0.6875 22C0.6875 33.7706 10.2294 43.3125 22 43.3125C33.7706 43.3125 43.3125 33.7706 43.3125 22C43.3125 10.2294 33.7706 0.6875 22 0.6875ZM22 40.5625C11.8023 40.5625 3.4375 32.3078 3.4375 22C3.4375 11.8024 11.6922 3.4375 22 3.4375C32.1977 3.4375 40.5625 11.6922 40.5625 22C40.5625 32.1976 32.3078 40.5625 22 40.5625ZM34.1713 16.933L18.6613 32.3186C18.257 32.7197 17.604 32.7171 17.203 32.3128L9.82283 24.873C9.42176 24.4686 9.42434 23.8157 9.82867 23.4146L10.5609 22.6884C10.9652 22.2873 11.6181 22.2899 12.0192 22.6942L17.9468 28.6697L31.9926 14.7366C32.3969 14.3356 33.0498 14.3382 33.4509 14.7425L34.1772 15.4747C34.5783 15.879 34.5757 16.532 34.1713 16.933Z" fill="#27AE60"></path></g><defs><clipPath id="clip0_212_2187"><rect width="44" height="44" fill="white"></rect></clipPath></defs></svg><p>Ваш отзыв успешно отправлен!</p><span>Спасибо за обратную связь.</span></div></div><div class="feedback__popup" id="feedback__popup_why"><button type="button" class="feedback-popup-close">×</button><div class="feedback__popup-header">Уточните, почему:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Рекомендации не помогли</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Текст трудно понять</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Нет ответа на мой вопрос</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Содержание статьи не соответствует заголовку</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Другая причина</label></div><div class="feedback__popup" id="feedback__popup-other"><button type="button" class="feedback-popup-close">×</button> <div class="feedback__popup-header">Расскажите, что вам не понравилось в статье:</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Отправить"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg"/><span class="feedback-form__btn-group_yes-btn">Да</span></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg"/><span class="feedback-form__btn-group_no-btn">Нет</span></label></div><select name="category"><option disabled>Выберите вариант</option><option value="bad_recommendation" selected>Рекомендации не помогли</option><option value="difficult_text">Текст трудно понять</option><option value="no_answer">Нет ответа на мой вопрос</option><option value="bad_header">Содержание статьи не соответствует заголовку</option><option value="other_reason">Другая причина</option></select><input type="submit"></form></div></div>
</section>
</div>
<aside class="article__sidebar" style="display:none">
<input type="checkbox" />
<div class="article__arrow"></div>
<div class="table-of-contents elma365-right" id="toc2Content">
<h3 class="h3-toc">В этой статье</h3>
<nav id="toc2"></nav>
</div>
</aside>
</div>
</article>
</main>
<footer class="footer">
<div class="footer-container">
<div class="footer-mobile">
<ul class="footer-mobile__list"><li><a href="https://api.elma365.com/ru/" target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/" target="_blank">TS SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/elma365" target="_blank">Академия</a></li></ul><ul class="footer-mobile__list"><li><a href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li></ul>
</div>
<div class="container">
<div class="footer-wrap">
<div><span class="mobile-question-popup">Отправить фидбэк</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Задать вопрос</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Отправить"></div></form><div class="hidden fade-in question-success-xs">Ваш фидбэк отправлен.</div></div>
<div class="footer-flex-b">
<div class="footer-top">
<span class="footer-copy">&copy; 2025
ELMA365
</span>
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
</a>
</div>
<div class="footer-line">
<div class="footer-line-copy">
<span class="footer-copy">&copy; 2025
ELMA365
</span>
</div>
<ul class="footer-list">
<li class="footer-item"><a href="https://elma365.com/ru/" target="_blank" class="footer-link" style="color: #0D4A75;"><img src="browse.svg" alt="browse icon" class="footer-img">elma365.com</a></li><li class="footer-item"><a href="https://www.youtube.com/user/ELMABPM" target="_blank" class="footer-link"><img src="yt.svg" alt="youtube icon" class="footer-img"></a></li><li class="footer-item"><a href="https://vk.com/elma_bpm" target="_blank" class="footer-link"><img src="vk.svg" alt="vk icon" class="footer-img"></a></li><li class="footer-item"><a href="https://t.me/elmaday" target="_blank" class="footer-link"><img src="tg.svg" alt="telegram icon" class="footer-img"></a></li><li class="footer-item"><a href="https://dzen.ru/elma" target="_blank" class="footer-link"><img src="dzen.svg" alt="dzen icon" class="footer-img"></a></li>
<li class="footer-item">
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<a href="#" class="arrow-top"></a>
</div>
</footer>
<!-- <script type="text/javascript" src="jquery1.min.js"></script>-->
<iframe name="hmnavigation" style="display:none!important"></iframe>
<!--<script src="./jquery-ui.js"></script> -->
<script src="./jquery-ui.min.js"></script>
<!--script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script-->
<script src="./jquery.tocify.min.js"></script>
<script src="./TypoReporter.min.js"></script>
<script src="./google-search.js"></script>
<script src="./main.js"></script>
</body>
</html>