kafka-go

command module
v0.0.0-...-28b663b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Example of Auto instrumentation of HTTP server + Kafka producer + Kafka consumer + Manual span

This example shows a trace being generated which is composed of a HTTP server handler which produces a batch of 2 message to different kafka topics, and a single consumer consuming one of these messages. The consumer generate a manual span for each message it handles, this span is visible as the son of the consumer span.

To run the example, bring up the services using the command.

docker compose up 

After the services are up, you can hit the server using the below command

curl localhost:8080/produce

Which will produce a batch of 2 messages. Every hit to the server should generate a trace that we can observe in Jaeger UI

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
consumer module
producer module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL