go-agent-instrumentation

module
v0.0.0-...-989e374 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0

README

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)

Directories

Path Synopsis
frameworks
gin Module

Jump to

Keyboard shortcuts

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