gen

package module
v0.0.0-...-8b4ae58 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 0 Imported by: 0

README

go-opentracing-example

End-to-end go opentracing example using jaeger as tracer.

This example shows how to leverage open tracing to see a span that covers the following flow:

1

As you can see:

  • a span is started by performing an HTTP request to the http-sever-initiator that calls http-sever-receiver over HTTP in turn
  • http-sever-receiver calls grpc-server over GRPC after having registered a child span
  • grpc-server publishes a message into kafka and returns a successful response upstream after having registered a child span
  • kafka-consumer consumes the message from the todos topic and creates a new record in the todos table. It creates two spans: one for the time spent in the whole consumer logic and one for the time spent during the database query.

How to run

You can run the project using docker-compose up (tbd)

TODOS

  • Write solid documentation.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
contracts
src
test/mock/database/postgres
Package executormock is a generated GoMock package.
Package executormock is a generated GoMock package.
test/mock/kafka
Package sendermock is a generated GoMock package.
Package sendermock is a generated GoMock package.
test/mock/kafka-consumer/todo/repository
Package todocreatormock is a generated GoMock package.
Package todocreatormock is a generated GoMock package.
test/mock/opentracing
Package opentracingmock is a generated GoMock package.
Package opentracingmock is a generated GoMock package.
test/mock/todoclient
Package todoclientmock is a generated GoMock package.
Package todoclientmock is a generated GoMock package.
test/mock/tracing
Package tracingmock is a generated GoMock package.
Package tracingmock is a generated GoMock package.
test/mock/transport/http
Package transporthttpmock is a generated GoMock package.
Package transporthttpmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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