Skip to content

husir196/go-agent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinpoint Go Agent

Example

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

关闭监控

  1. 设置环境变量

PINPOINT_ENABLED=false

  1. 重启服务

License

The Pinpoint Go agent is licensed under the Apache 2.0 License. The Pinpoint Go agent Modified based on New Relic newrelic/go-agent.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.3%
  • Other 1.7%