zipkin
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "zipkin" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b032e13d0cd1377cbcc192684235ec7685f73696ac133c6c561b8b7d91c97b32. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Deploy and configure Zipkin for distributed tracing and request flow visualization. Used to set up trace data collection, integrate Zipkin tracing for Java/Spring or other services, analyze service dependencies, and configure the trace data storage backend.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
Frontmatter
name: zipkin
description: >-
Deploy and configure Zipkin for distributed tracing and request flow
visualization. Use when a user needs to set up trace collection, instrument
Java/Spring or other services with Zipkin, analyze service dependencies,
or configure storage backends for trace data.
license: Apache-2.0
compatibility: "Zipkin 2.24+, Spring Boot 3+"
metadata:
author: terminal-skills
version: "1.0.0"
category: devops
tags: ["zipkin", "tracing", "distributed-tracing", "spring-boot", "observability"]Zipkin
Overview
Set up Zipkin for distributed tracing to visualize request flows across services. Covers deployment, instrumentation with Spring Boot and OpenTelemetry, storage configuration, and dependency analysis.
Instructions
Task A: Deploy Zipkin
# docker-compose.yml — Zipkin with Elasticsearch storage
services:
zipkin:
image: openzipkin/zipkin:3
environment:
- STORAGE_TYPE=elasticsearch
- ES_HOSTS=http://elasticsearch:9200
- ES_INDEX=zipkin
- ES_INDEX_REPLICAS=1
- ES_INDEX_SHARDS=3
- SELF_TRACING_ENABLED=true
- JAVA_OPTS=-Xms512m -Xmx512m
ports:
- "9411:9411"
depends_on:
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
volumes:
- es_data:/usr/share/elasticsearch/data
volumes:
es_data:
# Quick start with in-memory storage (development only)
docker run -d -p 9411:9411 openzipkin/zipkin:3
Task B: Instrument Spring Boot Application
<!-- pom.xml — Zipkin dependencies for Spring Boot 3 -->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-brave</artifactId>
</dependency>
<dependency>
<groupId>io.zipkin.reporter2</groupId>
<artifactId>zipkin-reporter-brave</artifactId>
</dependency>
# application.yml — Spring Boot tracing configuration
spring:
application:
name: order-service
management:
tracing:
sampling:
probability: 1.0
zipkin:
tracing:
endpoint: http://zipkin:9411/api/v2/spans
logging:
pattern:
level: "%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}]"
// OrderController.java — Spring Boot controller with automatic tracing
@RestController
@RequestMapping("/api/orders")
public class OrderController {
private final RestClient restClient;
private final ObservationRegistry registry;
@PostMapping
public ResponseEntity<Order> createOrder(@RequestBody OrderRequest req) {
// Spans are created automatically for @RestController methods
Order order = orderService.create(req);
// RestClient propagates trace context automatically
PaymentResult payment = restClient.post()
.uri("http://payment-service/api/charge")
.body(new ChargeRequest(order.getId(), order.getTotal()))
.retrieve()
.body(PaymentResult.class);
return ResponseEntity.status(201).body(order);
}
}
Task C: Instrument with OpenTelemetry (Generic)
# tracing.py — Python service sending traces to Zipkin via OTLP
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.zipkin.json import ZipkinExporter
from opentelemetry.sdk.resources import Resource
resource = Resource.create({"service.name": "inventory-service"})
provider = TracerProvider(resource=resource)
zipkin_exporter = ZipkinExporter(endpoint="http://zipkin:9411/api/v2/spans")
provider.add_span_processor(BatchSpanProcessor(zipkin_exporter))
trace.set_tracer_provider(provider)
tracer = trace.get_tracer("inventory-service")
// tracing.js — Node.js service sending traces to Zipkin
const { NodeSDK } = require('@opentelemetry/sdk-node')
const { ZipkinExporter } = require('@opentelemetry/exporter-zipkin')
const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node')
const sdk = new NodeSDK({
traceExporter: new ZipkinExporter({ url: 'http://zipkin:9411/api/v2/spans' }),
instrumentations: [getNodeAutoInstrumentations()],
serviceName: 'notification-service',
})
sdk.start()
Task D: Query Traces via API
# Find traces by service name and time range
curl -s "http://localhost:9411/api/v2/traces?serviceName=order-service&limit=10&lookback=3600000" | \
jq '.[] | {traceId: .[0].traceId, spans: length, root: .[0].name, duration: (.[0].duration / 1000)}'
# Get service dependency graph
curl -s "http://localhost:9411/api/v2/dependencies?endTs=$(date +%s000)&lookback=86400000" | \
jq '.[] | "\(.parent) -> \(.child) (\(.callCount) calls)"'
# Find traces with specific tag
curl -s "http://localhost:9411/api/v2/traces?annotationQuery=http.status_code%3D500&serviceName=order-service" | \
jq '.[0][] | {name: .name, service: .localEndpoint.serviceName, duration: .duration}'
Task E: Zipkin with MySQL Storage
# docker-compose.yml — Zipkin with MySQL for durable storage
services:
zipkin:
image: openzipkin/zipkin:3
environment:
- STORAGE_TYPE=mysql
- MYSQL_HOST=mysql
- MYSQL_TCP_PORT=3306
- MYSQL_USER=zipkin
- MYSQL_PASS=zipkin_password
ports:
- "9411:9411"
depends_on:
- mysql
mysql:
image: openzipkin/zipkin-mysql:3
volumes:
- mysql_data:/var/lib/mysql
volumes:
mysql_data:
Best Practices
- Use sampling rates below 100% in production for high-traffic services to control storage costs
- Include trace IDs in application logs for log-trace correlation
- Use B3 propagation headers for cross-service context propagation in Spring Boot
- Set appropriate storage TTL — 7 days for detailed traces, dependency data is lightweight
- Monitor Zipkin's own health with
/healthendpoint andSELF_TRACING_ENABLED=true - Prefer Elasticsearch over MySQL for production workloads with high trace volume
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 高价值/高频刚需 - 分布式追踪是微服务架构的核心可观测性需求
- Zipkin是主流方案,覆盖部署、集成、存储、查询全流程
- 适用于Java/Spring、Python、Node.js等多种技术栈
Highlights
- 触发词精准完整,覆盖多种变体,边界清晰
- 明确描述使用场景:设置追踪数据收集、集成Zipkin追踪、分析服务依赖关系、配置存储后端
Highlights
- Phase/步骤清晰,有出口条件,含端到端示例
- frontmatter完整,单文件≤500行
- 结构清晰,易于理解和执行
Highlights
- 工具来源明确,参数正确,覆盖主要异常
- 不可逆操作有确认机制
- 提供了多种部署和存储选项,适应不同场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- elasticsearch
- localhost
- payment-service
- zipkin
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.