command module
Version: v0.0.0-...-cfeac3e Latest Latest

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 14 Imported by: 0


Go OpenCensus example for Gin and Gorm

Build Status Go Report Card GolangCI

This repository serves as an example for configuring OpenCensus to instrument applications written using Gin framework and Gorm ORM.


  • Go 1.11
  • Docker (with Compose)
  • Dep 0.5.0 (make installs it for you)
  • cURL or Postman for calling the API
  • the following ports free: 3306, 6831, 8080, 9090, 14268, 16686 (alternative: edit docker-compose.override.yml manually)


  1. Set up the project: make up
  2. Run the application: make run
  3. Open http://localhost:16686 in your browser (Jaeger UI)
  4. Open http://localhost:9090 in your browser (Prometheus UI)

When you are done playing with the project you can easily destroy everything it created with make down. (It removes everything except .env and .env.test)

Calling the API

The easiest way to run the example is using Postman:

Run in Postman

Alternatively you can send simple HTTP requests with any tool you like. For example using cURL:

$ curl http://localhost:8080/people -d '{"first_name": "John", "last_name": "Doe"}'
$ curl http://localhost:8080/hello/John


The MIT License (MIT). Please see License File for more information.


The Go Gopher

There is no documentation for this package.

Source Files


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL