pinpoint-go-agent

module
v0.0.0-...-62f52bb Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0

README

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.

Directories

Path Synopsis
examples
custom-instrumentation
An application that illustrates Distributed Tracing with custom instrumentation.
An application that illustrates Distributed Tracing with custom instrumentation.
server-http
An application that illustrates Distributed Tracing or Cross Application Tracing when using http.Server or similar frameworks.
An application that illustrates Distributed Tracing or Cross Application Tracing when using http.Server or similar frameworks.
integrations
nrgin Module
nrgrpc Module
nrmicro Module
cat
Package cat provides functionality related to the wire format of CAT headers.
Package cat provides functionality related to the wire format of CAT headers.
integrationsupport
Package integrationsupport exists to expose functionality to integration packages without adding noise to the public API.
Package integrationsupport exists to expose functionality to integration packages without adding noise to the public API.
jsonx
Package jsonx extends the encoding/json package to encode JSON incrementally and without requiring reflection.
Package jsonx extends the encoding/json package to encode JSON incrementally and without requiring reflection.
stacktracetest
Package stacktracetest helps test stack trace behavior.
Package stacktracetest helps test stack trace behavior.
utilization
Package utilization implements the Utilization spec, available at https://source.datanerd.us/agents/agent-specs/blob/master/Utilization.md
Package utilization implements the Utilization spec, available at https://source.datanerd.us/agents/agent-specs/blob/master/Utilization.md
Package pinpoint provides instrumentation for Go applications.
Package pinpoint provides instrumentation for Go applications.
thrift
io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL