0Pricing
Spring Boot 4 Microservices & REST APIs · Ders

İzleri Zipkin'e Dışa Aktarma

İzleri Zipkin'de görselleştirin.

İzleri Zipkin'e Dışa Aktarma, CoddyKit'te ücretsiz bir Spring Boot 4 Microservices & REST APIs dersidir. Bu, 4 dersinin 3. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Spring Boot 4 Microservices & REST APIs öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Spring Boot 4 Microservices & REST APIs kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

Why an exporter is needed

Creating spans is not enough - they must be exported to a backend that stores and visualizes them. Zipkin is a popular, easy-to-run choice.

Running Zipkin

The simplest way to run Zipkin locally is its Docker image. It exposes a UI and an ingest API on port 9411.

// docker run -d -p 9411:9411 openzipkin/zipkin
// UI at http://localhost:9411

Adding the Zipkin reporter

Add the reporter dependency so finished spans are sent to Zipkin.

<dependency>
  <groupId>io.zipkin.reporter2</groupId>
  <artifactId>zipkin-reporter-brave</artifactId>
</dependency>

Configuring the endpoint

Tell Spring where Zipkin lives. The default endpoint is the local Zipkin ingest URL.

management:
  zipkin:
    tracing:
      endpoint: http://localhost:9411/api/v2/spans

Setting the sampling rate

Combine the exporter with a sampling probability. In development you often sample 100% to see every trace.

management:
  tracing:
    sampling:
      probability: 1.0   # 100% in dev

Service name in Zipkin

Spans are grouped by service. Zipkin uses spring.application.name as the service name, so set it meaningfully on each app.

spring:
  application:
    name: order-service

How spans reach Zipkin

Each service buffers finished spans and reports them to Zipkin asynchronously (over HTTP by default). Zipkin joins spans sharing a traceId into one trace.

Exploring traces in the UI

In the Zipkin UI you search by service, span name, tag or duration, then open a trace to see the waterfall of spans across all services.

Reading the dependency graph

Zipkin can render a service dependency diagram from collected traces, showing which services call which - a live map of your architecture.

Alternative backends

The same Micrometer setup can export elsewhere. With the OpenTelemetry bridge you can send to OTLP-compatible backends (Tempo, Jaeger, vendors) instead of Zipkin.

Production considerations

In production, lower the sampling rate, secure the Zipkin endpoint, and ensure the reporter's async queue does not drop too many spans under load. Tracing should never harm request latency.

Quick Check

Confirm your exporter knowledge.

Recap

You exported traces to Zipkin:

  • Run Zipkin (port 9411) and add the Zipkin reporter
  • Set the endpoint and a sampling probability
  • spring.application.name is the Zipkin service name
  • Explore waterfalls and the service dependency graph in the UI

Sıkça Sorulan Sorular

“İzleri Zipkin'e Dışa Aktarma” dersi ücretsiz mi?

Evet — “İzleri Zipkin'e Dışa Aktarma” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Spring Boot 4 Microservices & REST APIs kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Spring Boot 4 Microservices & REST APIs kursu toplamda 4 dersten oluşur.

“İzleri Zipkin'e Dışa Aktarma” dersinde ne öğreneceğim?

İzleri Zipkin'de görselleştirin. Spring Boot 4 Microservices & REST APIs ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

Spring Boot 4 Microservices & REST APIs öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te Spring Boot 4 Microservices & REST APIs, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 3. dersidir.

“İzleri Zipkin'e Dışa Aktarma” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu Spring Boot 4 Microservices & REST APIs dersinde kod yazıp çalıştırabilir miyim?

Evet. Her Spring Boot 4 Microservices & REST APIs dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. Dağıtık İzleme Neden Önemlidir
  2. Micrometer İzleme
  3. İzleri Zipkin'e Dışa Aktarma
  4. Günlükleri ve İzleri İlişkilendirme
← Spring Boot 4 Microservices & REST APIs Sayfasına Dön