huaweicloud/huaweicloud-skills/huawei-cloud-agentarts-otel-ingestion
Claude Code and agent skill by huaweicloud/huaweicloud-skills
- community
Checking that the SKILL.md file is still in the repository.
OpenTelemetry ingestion skill for Huawei Cloud AgentArts observability platform. Provides OTel telemetry data (trace/metrics/logs) ingestion into AgentArts agent-ops, AI Agent observation with gen_ai semantic conventions, auto-configuration for Java/Python/Node.js/Go applications, and ingestion diagnostics and verification. Covers APM deliverConfig forwarding (Path A) and OTLP direct connection (Path B). Triggers include: "AgentArts OTel", "AgentArts observability", "AI agent tracing", "gen_ai telemetry", "AgentArts OTLP", "otel接入AgentArts", "Agent观测配置"
Install
npx vskill@latest install huaweicloud/huaweicloud-skills/huawei-cloud-agentarts-otel-ingestionSKILL.md
The same SKILL.md was published earlier as huaweicloud/huaweicloud-skills/huawei-cloud-agentarts-otel-ingestion.
Huawei Cloud AgentArts OpenTelemetry Ingestion
Overview
This skill enables OpenTelemetry (OTel) telemetry data ingestion into Huawei Cloud AgentArts observability platform (agent-ops). It covers four functional areas:
- OTel Telemetry Ingestion — Route trace/metrics/logs from applications to
agent-ops via APM deliverConfig forwarding (Path A, recommended) or OTLP direct connection (Path B, verification only).
- AI Agent Observation — Instrument AI/LLM applications with OpenTelemetry GenAI
semantic conventions (gen_ai.* spans, token usage metrics, model call chains).
- Auto-Configuration — Detect application language/framework and generate
ready-to-use OTel SDK/Collector configuration.
- Ingestion Diagnostics — Verify data arrival via agent-ops observation APIs
(trace/session/metric/log queries).
Architecture
Data Flow
See references/dataflow-diagram.md for the Mermaid diagram.
Prerequisites
1. Huawei Cloud Credentials
Set credentials out-of-band. Never paste AK/SK in chat.
Verify by running the CLI configure list command (if hcloud CLI is installed).
2. hcloud CLI (KooCLI)
Install: https://support.huaweicloud.com/qs-hcli/hcli_02_003.html
3. APM Subscription
Confirm agent-ops has subscribed to APM observation. If not subscribed, complete subscription first (management plane: SubscribeOpsObservation / OpenOpsObservation).
4. IAM Permissions
See references/iam-policies.md for least-privilege policy.
5. OTel SDK
Install language-specific OTel packages:
- Java:
opentelemetry-javaagent(download JAR) - Python:
pip install opentelemetry-sdk opentelemetry-exporter-otlp-proto-http - Node.js:
npm install @opentelemetry/sdk-node @opentelemetry/exporter-trace-otlp-http - Go:
go get go.opentelemetry.io/otel go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
Workflow
Step 1: Confirm Application Environment
Detect the application language/framework:
| Language | Detection Method | OTel Instrument | |
|---|---|---|---|
| Java | pom.xml / build.gradle / .jar files | opentelemetry-javaagent | |
| Python | requirements.txt / pyproject.toml | opentelemetry-sdk | |
| Node.js | package.json | @opentelemetry/sdk-node | |
| Go | go.mod | go.opentelemetry.io/otel |
If existing OTel config is detected, read and adjust rather than overwrite.
Step 2: Confirm Target Environment
| Parameter | Default | Description | |
|---|---|---|---|
region | cn-southwest-301 | agent-ops deployment region | |
APM_ENDPOINT | https://apm2.cn-southwest-301.beta.myhuaweicloud.com | APM OTLP endpoint | |
AGENT_OPS_ENDPOINT | https://agentarts.cn-southwest-301.myhuaweicloud.com | AgentArts API endpoint | |
apm.internal.endpoint | Internal endpoint | For deliverConfig forwarding | |
wushan.common.appcode | App code | For internal endpoint auth |
Step 3: Confirm Ingestion Scope
- Data types: traces / metrics / logs
- Application name (
appName) and business ID (businessId)
Step 4: Execute Ingestion (Path A or B)
Path A: APM deliverConfig Ingestion (Recommended)
4a. Create tracing business (official API — verified via IAM authorization reference):
API equivalent (official path):
4b. Get business token (official API):
API equivalent:
Record the returned token for application-side OTel exporter auth.
4c. Get access point (official API):
4d. Create deliverConfig forwarding (user-provided API — requires manual verification):
Note: This endpoint is from user-provided reference, not found in official public docs.Verify the exact path in Huawei Cloud API Explorer before use.
Modify: PUT /v2/trace/deliver-config (body: {id, deliver_otel_trace}) Delete: DELETE /v2/trace/deliver-config/{id}?region=
4e. Configure application-side OTel SDK/Collector
Java Agent:
Python SDK:
Node.js SDK:
Go SDK:
OTel Collector (config.yaml):
Path B: OTLP Direct Connection (Verification Only)
As of current agent-ops version, the backend contains OTLP proto definitions butno OTLP receiver implementation. Path B is for verification testing only.
- Deploy OTel Collector with OTLP receiver and test exporter.
- Generate test spans from a sample application.
- Verify data export to confirm SDK/Collector config correctness.
- Use management plane APIs to verify data reachability.
Step 5: AI Agent Observation (GenAI Semantic Conventions)
Instrument AI/LLM applications with OpenTelemetry GenAI semantic conventions:
| Span Name | Description | Key Attributes | |
|---|---|---|---|
invoke_agent | Agent invocation | gen_ai.system, gen_ai.request.model | |
execute_tool | Tool execution | gen_ai.tool.name, gen_ai.tool.description | |
inference | Model inference | gen_ai.usage.input_tokens, gen_ai.usage.output_tokens |
Python example (LLM tracing):
Node.js example:
See references/genai-semconv.md for full attribute reference.
Step 6: Verify Data Arrival
Query agent-ops observation APIs to confirm data ingestion. These are management plane APIs — authenticate with IAM token (X-Auth-Token), not the OTel business-side Bearer token:
ShowOpsTrace (official — verified):
ShowOpsAgentMetricTrend (official — verified):
ListOpsSession (existence confirmed, path requires manual verification):
Note: Exact paths for ListOpsTrace, ListOpsSession, ShowOpsAgentMetricGauge,ListOpsAgentLog require manual verification in Huawei Cloud API Explorer.Seereferences/verification-method.md.
Step 7: Ingestion Diagnostics
Common diagnostic checks:
| Symptom | Check | |
|---|---|---|
| Auth failure (401/403) | Token expired → re-fetch business token; check appcode permissions | |
| No subscription | Subscribe via SubscribeOpsObservation / OpenOpsObservation | |
| Kafka unreachable | Check bootstrap-servers, SASL/SSL, topic existence | |
| SDK/Collector mismatch | Confirm OTLP protocol version compatibility | |
| No data in management plane | Check time range, region, deliver_otel_trace=true | |
| OTLP direct unavailable | agent-ops has no OTLP receiver → fall back to Path A |
Core Commands
| Command | Purpose | Mode | |
|---|---|---|---|
hcloud APM CreateBusiness --cli-region={region} | Create tracing business | CLI | |
hcloud APM ShowToken --cli-region={region} | Get business token | CLI | |
POST /v1/apm2/openapi/tracing/business/create | Create tracing business (API) | API | |
GET /v1/apm2/openapi/tracing/business/token/{id} | Get business token (API) | API | |
POST /v1/apm2/openapi/tracing/access/get-access-point/{id} | Get access point (API) | API | |
POST /v2/trace/deliver-config | Create deliverConfig (user-provided) | API | |
POST {AGENT_OPS_ENDPOINT}/v1/ops/observation/traces | Query traces | API | |
POST {AGENT_OPS_ENDPOINT}/v1/ops/observation/metrics/trend | Query metric trend | API |
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ai/agentarts/huawei-cloud-agentarts-otel-ingestion/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/huaweicloud/huaweicloud-skills/huawei-cloud-agentarts-otel-ingestion)