Skip to content

Commit

Permalink
📝 add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
budougumi0617 committed Jan 4, 2021
1 parent 32b567a commit 7af50bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nrseg.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ func Process(filename string, src []byte) ([]byte, error) {
// TODO: no append if exist calling statement of newrelic.FromContext.
// TODO: get context variable name from function/method argument.
// TODO: create segment name by function/method name.
// TODO: support http.Request instead of context.Context
// TODO: support *http.Request instead of context.Context
// TODO: get *http.Request variable name from function/method argument.
// TODO: skip if comment go:nrsegignore in function/method comment.
ds := buildDeferStmt(pkg, "ctx", "slow")
rds := buildDeferStmtWithHttpRequest(pkg, "req", "slow")
fd.Body.List = append([]ast.Stmt{ds, rds}, fd.Body.List...)
Expand Down

0 comments on commit 7af50bf

Please sign in to comment.