cd examples/server
go run main.go
-
自定义事务
-
自定义方法
-
错误获取
-
http
-
gin
-
grpc
-
logrus
-
mysql
-
redis
具体接入方式详见
- examples
- intergrations/*/examples
enabled: true
app_name: my_app
agent_id: my_agent
collector:
ip: 127.0.0.1
tcp_port: 9994
stat_port: 9995
span_port: 9996
log:
# sets Logger to log to either "stdout" or "stderr" (filenames are not supported)
std:
# controls the pinpoint log level, must be "debug" for debug, or empty for info
level:
- PINPOINT_APP_NAME
- PINPOINT_AGENT_ID
- PINPOINT_COLLECTOR_IP
- PINPOINT_COLLECTOR_TCP_PORT
- PINPOINT_COLLECTOR_STAT_PORT
- PINPOINT_COLLECTOR_SPAN_PORT
- PINPOINT_LOG sets Logger to log to either "stdout" or "stderr" (filenames are not supported)
- PINPOINT_LOG_LEVEL controls the pinpoint log level, must be "debug" for debug, or empty for info
- PINPOINT_ENABLED
- 设置环境变量
PINPOINT_ENABLED=false
- 重启服务
The Pinpoint Go agent is licensed under the Apache 2.0 License. The Pinpoint Go agent Modified based on New Relic newrelic/go-agent.