Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 8|回復: 0

You should be able to see various

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2023-12-28 18:24:50 | 顯示全部樓層 |閱讀模式
Click on a span for more information.  information about the trace such as and . You should also see multiple ones, one of which you set manually. View internal traces Add tracing for your queries In this section you will learn how to trace database queries. Initially you will do this manually by creating the span yourself. Although manual tracking is no longer required but implementing it will give you a better understanding of how tracking works. You'll then do the same thing automatically using the new tracking feature in . Tracking your queries manually To track queries manually you must wrap each query in a span. You can do this by adding the following.

Code to your copy of the file you have crea photo editing servies ted a new range called query. You also made some changes to how your variables are declared to make them consistent with the rest of your code. Test the new span by querying the endpoint again and viewing the newly generated trace in . In Visualizing Subspans you should see that the resulting trace has a new subspan called nested below the parent scope. Now you can check Look at the request duration taken to execute the query. Manual vs. automatic instrumentation Since you are setting up automatic instrumentation you no longer need to manually create spans for queries. Updating by deleting the manual range of a query The order in which tracking.



Additional queries you add to your application after enabling auto-detection will also automatically generate traces. Note To learn more about generated spans see the Trace Output section of the Trace documentation. To set up automatic detection you currently track endpoints by manually creating spans. Just like queries manual tracking will become unmanageable as the number of endpoints increases. To solve this problem you can also set up automatic detection. First install the following instrumentation libraries Copy Register the two new instrument  is initialized is important when using automatic detection for replication. You need to set up tracking and register detections before importing the detection library.


您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|zv

GMT+8, 2025-3-4 11:11 , Processed in 0.033035 second(s), 18 queries .

抗攻擊 by GameHost X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |