Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Tracing

Updated on 2024-11-12 GMT+08:00
NOTE:

Currently, this feature is available only in CN East-Shanghai1 and CN North-Beijing4 regions.

Overview

After enabling tracing on the Monitoring tab, you can view details on the Tracing page, or go to the APM console and choose Application Monitoring > Tracing. This feature is available only for Java 8 and 11 functions.

Prerequisites

  • Only functions with 512 MB or larger memory can be traced. For functions whose memory is less than 512 MB, increase the memory on the Configuration > Basic Settings page.
  • You have obtained the permission to use APM. For details, see APM Permissions Management. If tracing is not enabled, no trace data can be obtained.

Enabling Tracing

  1. Log in to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
  2. Click the name of the desired function.
  3. Choose Monitoring > Tracing.
  4. Click enable tracing.

    Figure 1 Enabling tracing

  5. The system automatically obtains an access key (AK/SK) from APM, as shown in Figure 2.

    Figure 2 Obtaining an access key
    • If an access key already exists, select an AK from the AK drop-down list and click OK.
    • If you do not have an access key, click Create AK/SK to create one on the APM console. For details, see Creating an Access Key. Then the new AK/SK will be synchronized to the FunctionGraph console.

  6. Manage tracing.

    • Click Disable Tracing in the upper right corner. In this case, you cannot view function traces.
    • If the AK/SK has been changed on the APM console, you need to go to the FunctionGraph console and click Update AK/SK in the upper right corner.

Querying Trace Details

  1. Return to the FunctionGraph console, choose Functions > Function List in the navigation pane, and click the name of a function with tracing enabled. The function details page is displayed.
  2. On the Monitoring tab page, choose Tracing.
  3. Set search criteria and click Search.

    Figure 3 Setting search criteria
    • Time: Set a time range to query traces. It can be up to 24 hours.
    • Response Time: Set the response time.
    • Execution Result: Select All, Successful, or Failed.
    • Trace ID: If you specify this parameter, all other search criteria become invalid and only the trace with the specified ID will be searched.

  4. View the trace details on the right.

    Viewing details about a trace: In the query result, click the trace name and view details on the APM console.

    Figure 4 Clicking a trace name
    Figure 5 Details about a trace

    Viewing information about all traces: Click go to APM to perform complete path analysis and other operations.

    Figure 6 Going to APM

    Example

    1. The following shows how function A (DemoTestA) invokes function B (DemoTestB) by sending an HTTP request.
      Figure 7 Function invocation details

      1. Total time consumed by a method of function A

      2. Invoking function B by sending an HTTP request

      3. Accessing function B

      4. Executing executeQuery

      5. Executing a SELECT statement to query data

    2. The following shows a complete function execution process that contains cold start.

      Spans are described as follows:

      • load: time for downloading and decompressing the function code package and dependency package
      • preload: time for loading function code and initializing the execution environment
      • init: execution duration of the initializer. The initializer is executed only during cold start.
      • processInvoke: execution duration of the function
      NOTE:

      For more information, see section "Tracing".

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback