Skip to main content

event-trace

Distributed event tracing library for event-driven architectures with automatic correlation ID propagation

Overview

event-trace provides automatic correlation ID propagation across message broker and HTTP boundaries. It instruments Kafka consumers and producers, RabbitMQ channels, and HTTP clients without requiring manual trace context management.

Quick Start

import "github.com/example/event-trace"

// Wrap your Kafka consumer
consumer := eventtrace.WrapConsumer(kafkaConsumer,
  eventtrace.WithOTLP("http://otel-collector:4317"),
)

Features

  • Zero-config correlation ID propagation for Kafka and RabbitMQ
  • OpenTelemetry OTLP export
  • HTTP middleware for Express, Gin, and Echo
  • Baggage propagation across async boundaries
  • Sampling rate configuration per topic or queue
Statusactive
LicenseApache 2.0
Last commit4 days ago
Versionv1.5.2
Buildpassing
stars934
forks108
contributors14
Back to Projects