doc-exports/docs/lts/umn/lts_01_0010.html
Liu, Siying 35cd899fe1 LTS UMN 20230609 version.
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com>
Co-authored-by: Liu, Siying <liusiying@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Liu, Siying <liusiying@noreply.gitea.eco.tsi-dev.otc-service.com>
2023-08-08 15:12:51 +00:00

38 lines
8.9 KiB
HTML

<a name="lts_01_0010"></a><a name="lts_01_0010"></a>
<h1 class="topictitle1">Configuring CTS to Upload Traces to LTS</h1>
<div id="body32001227"><div class="section" id="lts_01_0010__en-us_topic_0224007630_section12968185213249"><h4 class="sectiontitle">Scenarios</h4><p id="lts_01_0010__en-us_topic_0224007630_p4106195171315">This section describes how to enable trace analysis on the Cloud Trace Service (CTS) console to report traces to LTS, so you can query the traces on the LTS console.</p>
</div>
<div class="section" id="lts_01_0010__en-us_topic_0224007630_section950534918297"><h4 class="sectiontitle">Operation process</h4><div class="fignone" id="lts_01_0010__en-us_topic_0224007630_fig1610211279519"><a name="lts_01_0010__en-us_topic_0224007630_fig1610211279519"></a><a name="en-us_topic_0224007630_fig1610211279519"></a><span class="figcap"><b>Figure 1 </b>Flowchart</span><br><span><img id="lts_01_0010__en-us_topic_0224007630_image1332616328163" src="en-us_image_0224007675.png"></span></div>
<p id="lts_01_0010__en-us_topic_0224007630_p3764849575">Operations in <a href="#lts_01_0010__en-us_topic_0224007630_fig1610211279519">Figure 1</a> are performed on different consoles:</p>
<ol id="lts_01_0010__en-us_topic_0224007630_ol541664918814"><li id="lts_01_0010__en-us_topic_0224007630_li241618492084">CTS console: Enabling CTS and creating and configuring a tracker</li></ol><ol start="2" id="lts_01_0010__en-us_topic_0224007630_ol195421511581"><li id="lts_01_0010__en-us_topic_0224007630_li175429512813">LTS console: Viewing traces reported by CTS</li></ol>
</div>
<div class="section" id="lts_01_0010__en-us_topic_0224007630_section854510497218"><h4 class="sectiontitle">Enabling CTS</h4><p id="lts_01_0010__en-us_topic_0224007630_p15484164817718">You can perform the following operations to enable CTS and create a tracker.</p>
<ol id="lts_01_0010__en-us_topic_0224007630_ol17875712152213"><li id="lts_01_0010__en-us_topic_0224007630_ldd0da3796d894d709d13ffdbc6c4a47d">Log in to the management console.</li><li id="lts_01_0010__en-us_topic_0224007630_l0952ff92679e484db23115ae0703a3e5">In the upper left corner of the management console, select the target region and project.</li><li id="lts_01_0010__en-us_topic_0224007630_li869318241235">Click <strong id="lts_01_0010__en-us_topic_0224007630_b15671013121918">Service List</strong> and choose <strong id="lts_01_0010__en-us_topic_0224007630_b1226392020191">Management &amp; Deployment</strong> &gt; <strong id="lts_01_0010__en-us_topic_0224007630_b6882823151915">Cloud Trace Service</strong>.</li><li id="lts_01_0010__en-us_topic_0224007630_li4976123681020">In the navigation pane on the left, choose <strong id="lts_01_0010__en-us_topic_0224007630_b84235270695459">Tracker</strong>.</li><li id="lts_01_0010__en-us_topic_0224007630_li11161755111016">On the <strong id="lts_01_0010__en-us_topic_0224007630_b93036455193">Tracker</strong> page, click <strong id="lts_01_0010__en-us_topic_0224007630_b195383484197">Enable CTS</strong>.</li><li id="lts_01_0010__en-us_topic_0224007630_li92575017136">On the displayed page, set <strong id="lts_01_0010__en-us_topic_0224007630_b1012831252613">OBS Bucket</strong>.<div class="fignone" id="lts_01_0010__en-us_topic_0224007630_fig1421850121313"><span class="figcap"><b>Figure 2 </b>Enabling CTS</span><br><span><img id="lts_01_0010__en-us_topic_0224007630_image8607638182015" src="en-us_image_0224007681.png"></span></div>
</li><li id="lts_01_0010__en-us_topic_0224007630_li13882141242211">Click <strong id="lts_01_0010__en-us_topic_0224007630_b84235270619330">OK</strong>.<p id="lts_01_0010__en-us_topic_0224007630_p2693559756">After you enable CTS, tracker <strong id="lts_01_0010__en-us_topic_0224007630_b16631546202110">system</strong> is automatically created. All recorded traces are associated with the tracker.</p>
<p id="lts_01_0010__en-us_topic_0224007630_p0904162115515">Currently, only one tracker can be created for each account.</p>
</li></ol>
</div>
<div class="section" id="lts_01_0010__en-us_topic_0224007630_section4285185832114"><h4 class="sectiontitle">Configuring the Tracker</h4><p id="lts_01_0010__en-us_topic_0224007630_p1596916412818">Follow the directions below to enable transfer to LTS so traces can be reported to LTS:</p>
<ol id="lts_01_0010__en-us_topic_0224007630_ol182182023112216"><li id="lts_01_0010__en-us_topic_0224007630_li9558132671910">On the <strong id="lts_01_0010__en-us_topic_0224007630_b676413413237">Tracker</strong> page, click <strong id="lts_01_0010__en-us_topic_0224007630_b208863391237">Configure</strong> in the <strong id="lts_01_0010__en-us_topic_0224007630_b7544174362313">Operation</strong> column.<p id="lts_01_0010__en-us_topic_0224007630_p845211328715">The <strong id="lts_01_0010__en-us_topic_0224007630_b84235270695757">Configure Tracker</strong> page is displayed.</p>
</li><li id="lts_01_0010__en-us_topic_0224007630_li438723316193">Enable <strong id="lts_01_0010__en-us_topic_0224007630_b2160322172220">Transfer to LTS</strong>.<div class="fignone" id="lts_01_0010__en-us_topic_0224007630_fig11639164020205"><span class="figcap"><b>Figure 3 </b>Configuring a tracker</span><br><span><img id="lts_01_0010__en-us_topic_0224007630_image18703932142316" src="en-us_image_0000001427369668.png"></span></div>
<div class="note" id="lts_01_0010__en-us_topic_0224007630_note1147751162414"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_01_0010__en-us_topic_0224007630_p9906165512714">A log group and a log stream will be created automatically for the reported traces on the LTS console.</p>
</div></div>
</li><li id="lts_01_0010__en-us_topic_0224007630_li129661646426">Click <strong id="lts_01_0010__en-us_topic_0224007630_b2203125919196">Next</strong> to preview the created tracker.</li><li id="lts_01_0010__en-us_topic_0224007630_li12221223152216">Click <strong id="lts_01_0010__en-us_topic_0224007630_b1790710142010">Configure</strong>.</li></ol>
</div>
<div class="section" id="lts_01_0010__en-us_topic_0224007630_section78767354224"><h4 class="sectiontitle">Viewing Logs in Real Time</h4><p id="lts_01_0010__en-us_topic_0224007630_p3438154021210">You can perform the following operations to view logs reported by CTS:</p>
<ol id="lts_01_0010__en-us_topic_0224007630_ol179119110336"><li id="lts_01_0010__en-us_topic_0224007630_l658c36a668b2430b9628c35479cb9e0b">Click <strong id="lts_01_0010__en-us_topic_0224007630_b14580201916312">Service List</strong> and choose <strong id="lts_01_0010__en-us_topic_0224007630_b18580131963115">Management &amp; Deployment</strong> &gt; <strong id="lts_01_0010__en-us_topic_0224007630_b958201993112">Log Tank Service</strong>.</li><li id="lts_01_0010__en-us_topic_0224007630_en-us_topic_0154611272_li217314910">In the log group list, click <span><img id="lts_01_0010__en-us_topic_0224007630_image88131854118" src="en-us_image_0000001424625748.png"></span> on the left of a log group name. The log stream list is displayed.</li><li id="lts_01_0010__en-us_topic_0224007630_lb3dae1021c3b4b139a6b62e3d112472b">Click Log Stream to go to the log details and view real-time logs.<div class="fignone" id="lts_01_0010__en-us_topic_0224007630_en-us_topic_0154611272_fig899148804"><span class="figcap"><b>Figure 4 </b>Viewing logs in real time</span><br><span><img id="lts_01_0010__en-us_topic_0224007630_image354813412355" src="en-us_image_0000001424778604.png"></span></div>
<p id="lts_01_0010__en-us_topic_0224007630_aac1f4a98600a4bbab72fb71c7ab36713">Logs are reported to LTS once every five seconds. You may wait for at most five seconds before the logs are displayed.</p>
<div class="p" id="lts_01_0010__en-us_topic_0224007630_a8c997e4687e14f22893db2a657ed0d31">You can control log display by clicking <strong id="lts_01_0010__en-us_topic_0224007630_b629194819010">Clear</strong> or <strong id="lts_01_0010__en-us_topic_0224007630_b1129115481020">Pause</strong> in the upper right corner.<ul id="lts_01_0010__en-us_topic_0224007630_u1e01305011b548de84a66b50395147f2"><li id="lts_01_0010__en-us_topic_0224007630_l90bfdce9047a4126bf768d50baa222b1"><strong id="lts_01_0010__en-us_topic_0224007630_b17474739624">Clear</strong>: clears all logs that are displayed in the log display area.</li><li id="lts_01_0010__en-us_topic_0224007630_en-us_topic_0154611272_li74162916153"><strong id="lts_01_0010__en-us_topic_0224007630_b26649400213">Pause</strong>: pauses the real-time log display so that you can view details of the displayed logs.<p id="lts_01_0010__en-us_topic_0224007630_ab496b3dd594e48249b5b127cea5915cd">After you click <strong id="lts_01_0010__en-us_topic_0224007630_b78514412022">Pause</strong>, the button changes to <strong id="lts_01_0010__en-us_topic_0224007630_b12851204110219">Continue</strong>. You can click <strong id="lts_01_0010__en-us_topic_0224007630_b118528411522">Continue</strong> to resume the log display.</p>
</li></ul>
</div>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_01_0008.html">Getting Started</a></div>
</div>
</div>