zipkin
БесплатноБез исполняемых скриптовНе проверенDeploy and configure Zipkin for distributed tracing and request flow visualization. Use when a user needs to set up trace collection, instrument Java/Spring…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
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. The current server release is 3.6.1; the openzipkin/zipkin:3 image listens on port 9411 for the UI, the span API (POST /api/v2/spans) and queries (/api/v2/*). Zipkin does not receive OTLP itself; OpenTelemetry SDKs must send Zipkin JSON, or go through an OpenTelemetry Collector with the zipkin exporter.
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:
- "127.0.0.1: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; data is lost on restart)
docker run -d --name zipkin -p 127.0.0.1:9411:9411 openzipkin/zipkin:3
curl -s http://localhost:9411/health # "status" : "UP"
Task B: Instrument Spring Boot Application
<!-- pom.xml — Spring Boot 4: one starter, version managed by the parent -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-zipkin</artifactId>
</dependency>
<!-- Spring Boot 3 instead: these two artifacts, plus spring-boot-starter-actuator -->
<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 Boot 4 property names)
spring:
application:
name: order-service
management:
tracing:
sampling:
probability: 1.0 # default is 0.1 (10% of requests)
export:
zipkin:
endpoint: http://zipkin:9411/api/v2/spans
# Spring Boot 3 uses management.zipkin.tracing.endpoint for the same setting
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; // build it from the injected RestClient.Builder
private final OrderService orderService;
@PostMapping
public ResponseEntity<Order> createOrder(@RequestBody OrderRequest req) {
// Spans are created automatically for @RestController methods
Order order = orderService.create(req);
// A RestClient created from the Spring-managed RestClient.Builder propagates trace context
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 (pip install opentelemetry-sdk opentelemetry-exporter-zipkin-json)
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")
with tracer.start_as_current_span("reserve-stock") as span:
span.set_attribute("http.status_code", 500) # searchable with annotationQuery
OpenTelemetry has deprecated its Zipkin exporters (the specification drops them in December 2026), though they still work. For new setups, send OTLP to an OpenTelemetry Collector and use its zipkin exporter pointed at http://zipkin:9411/api/v2/spans.
// 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
Установить zipkin в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл zipkin?
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.
Как установить скилл zipkin?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zipkin запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic