go-aah / aah

A secure, flexible, rapid Go web framework
https://aahframework.org
MIT License
691 stars 33 forks source link

Add feature of on-demand Go profiling and easy to enable/disable in aah application #216

Closed jeevatkm closed 5 years ago

jeevatkm commented 6 years ago

The goal is to implement on-demand option of enable/disable Go profiling to application insights in the aah application.

Configuration:

runtime {
    diagnosis {
        enable = true
        mode = "http"
        http {
            #address = ":6060"
            timeout {
                # Supported time units, refer to https://golang.org/pkg/time/#ParseDuration
                # Default value is `2m`.
                #write = "2m"
            }
        }
    }
}
jeevatkm commented 5 years ago

Done 😄