command
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Nov 23, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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:
-
docker run --name gofr-zipkin -d -p 2005:9411 openzipkin/zipkin:2
-
Open http://localhost:2005/zipkin/
in browser.
-
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:
go run main.go
- 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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.