Skip to content

kinsprite/gintest

Repository files navigation

dependencies

go get -u -v github.com/json-iterator/go
go get -u -v github.com/gin-gonic/gin
go get -u -v go.elastic.co/apm/module/apmgin

build

on Windows:

set GOPROXY=https://goproxy.io
set GIN_MODE=release
go build -tags=jsoniter -o gin-test.exe .

or Linux:

export GOPROXY=https://goproxy.io
export GIN_MODE=release
go build -tags=jsoniter -o gin-test .

RUN:

# Set the service name. Allowed characters:
# a-z, A-Z, 0-9, -, _, and space.
# If ELASTIC_APM_SERVICE_NAME is not specified,
# the executable name will be used.
export ELASTIC_APM_SERVICE_NAME=


# Set custom APM Server URL
# (default: http://localhost:8200)
export ELASTIC_APM_SERVER_URL= <apm_server_url>

# Set if APM Server requires a token.
export ELASTIC_APM_SECRET_TOKEN= <apm_token>

export GIN_MODE=release
./gin-test

Releases

No releases published

Packages

No packages published