newrelic / go-agent

New Relic Go Agent
Apache License 2.0
775 stars 295 forks source link

Fix for correct struct field name for echo version v3.2.2+ #899

Closed aayush-ap closed 7 months ago

aayush-ap commented 7 months ago

Fix for correct struct field name for echo version v3.2.2+

See here for documentation related to echo version v3.2.2 and above. For echo version up to v3.2.1:

type Route struct {
    Method  string `json:"method"`
    Path    string `json:"path"`
    Name  string `json:"name"`
}

See here for documentation related to echo version v3.2.1.

type Route struct {
    Method  string `json:"method"`
    Path    string `json:"path"`
    Handler string `json:"handler"`
}
nr-swilloughby commented 7 months ago

Merged for testing. I'm updating the dependency to the csec library 1.2.0 before releasing.