peachestao / go-agent-instrumentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-agent-instrumentation

This project attempts to enhance Golang programs by introducing this program during go build -toolexec=xxx, so that it can dynamically intercept framework code execution and add its own execution logic.

Test

  1. Using command for build and start a gin server: make test
  2. Open Browser to visit: http://localhost:9999
  3. The console of gin server output from the interceptor

Structure

|-- cmd               // the toolexec program
|-- frameworks        // the third part framework instrument
|-- frameworks/core   // the base library of the instrument, third part instrument needs import this project
|-- frameworks/gin    // the gin framework instrument test
|-- test              // the gin server(which needs to be intrument)

About

License:Apache License 2.0


Languages

Language:Go 99.3%Language:Makefile 0.7%