An example of instrumenting a github.com/gin-gonic/gin
HTTP service with Instana using github.com/mier85/go-sensor/tree/master/instrumentation/instagin
.
To start an example locally on localhost:8881
run:
go run main.go -l localhost:8881
In case when the port is already in use, please choose another one.
-l string
Server listen address
There will be two endpoints exposed:
GET /myendpoint
GET /v1/myendpoint