/spring-otel-auto-instrumentation-demo

Spring Boot Otel Auto Instrumentation Telemetry Data Example

Primary LanguageJava

Opentelemetry Otel Collector Example

Components

  • Application: (Print-service) Creates telemetry data. (logs, spans, metrics)
    • Spring Boot 2.6.5
    • Java 11
  • OTel Agent: JVM Java Agent (Opentelemetry-Javaagent.jar): Filter all http requests and sends all telemetry data by creating OTLP exporter
  • OTel Collector: Kubernetes Daemonset: Collects all telemetry data and process(batch) them. By configuration,
    • Logging Exporter

Installation (by Order)

Advanced - Otel Collector

Test Data

# Run PrintServiceApplication
# Send POST request
curl -X POST --location "http://localhost:9091/api/v1.0/print" \
    -H "Content-Type: text/plain" \
    -d "muhammed"

Resources