tracing

command
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

tracing

A sample app to test tracing with grpc and http client.

Zipkin Setup

Zipkin is used to see the traces. To run zipkin, follow the below steps:

  1. docker run --name gofr-zipkin -d -p 2005:9411 openzipkin/zipkin:2

  2. Open http://localhost:2005/zipkin/ in browser.

  3. Enter the correlation-id of the request in the search by trace ID bar and click enter.

Redis Setup

Run the following docker command to run redis

docker run --name gofr-redis -p 2002:6379 -d redis:7.0.5

RUN

To run the app follow the below steps:

  1. go run main.go
  2. Send request to /trace endpoint which will give correlation-id in response header.
  • Note: sample-api, sample-grpc should be run before running tracing

This will start the server at port 9001.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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