Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active February 4, 2020 06:15
Show Gist options
  • Select an option

  • Save ihcsim/5a817b04c7853259eb50339aa9f55564 to your computer and use it in GitHub Desktop.

Select an option

Save ihcsim/5a817b04c7853259eb50339aa9f55564 to your computer and use it in GitHub Desktop.
func (in instrumentedRuntimeService) Exec(req *runtimeapi.ExecRequest) (*runtimeapi.ExecResponse, error) {
const operation = "exec"
defer recordOperation(operation, time.Now())
resp, err := in.service.Exec(req)
recordError(operation, err)
return resp, err
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment