Skip to content

Commit 3f2101e

Browse files
authored
adding tracing for cb functions (#5)
* adding tracing for cb functions * updating readme * adding error information
1 parent bd53a77 commit 3f2101e

File tree

4 files changed

+121
-25
lines changed

4 files changed

+121
-25
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ this function should ideally only be used in your tests and/or for debugging mod
6464
func BuildGraph(executionPlan Plan, format, file string) error
6565
```
6666

67-
BuildGraph helps understand the execution plan\, it renders the plan in the given format please note we depend on graphviz\, please ensure you have graphviz installed
67+
BuildGraph helps understand the execution plan, it renders the plan in the given format please note we depend on graphviz, please ensure you have graphviz installed
6868

6969
## func GetFromResult
7070

@@ -74,7 +74,7 @@ func GetFromResult(ctx context.Context, obj interface{}) interface{}
7474

7575
### GetFromResult allows builders to access data built by other builders
7676

77-
this function enables optional access to data\, your code should not rely on values being present\, if you have explicit dependency please add them to your function parameters
77+
this function enables optional access to data, your code should not rely on values being present, if you have explicit dependency please add them to your function parameters
7878

7979
## func IsValidBuilder
8080

@@ -155,7 +155,7 @@ func NameMsgBuilder(_ context.Context, req AppRequest) (NameMsg, error) {
155155
}, nil
156156
}
157157

158-
//CityMsgBuilder builds city welcome msg from our AppRequest
158+
// CityMsgBuilder builds city welcome msg from our AppRequest
159159
func CityMsgBuilder(_ context.Context, req AppRequest) (CityMsg, error) {
160160
return CityMsg{
161161
Msg: fmt.Sprintf("Welcome to %s", req.CityName),
@@ -175,7 +175,7 @@ func CaseMsgBuilder(_ context.Context, name NameMsg, city CityMsg, req AppReques
175175
}, nil
176176
}
177177

178-
//ResponseBuilder builds Application response from CaseMsg
178+
// ResponseBuilder builds Application response from CaseMsg
179179
func ResponseBuilder(_ context.Context, m CaseMsg) (AppResponse, error) {
180180
return AppResponse{
181181
Msg: m.Msg,

go.mod

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ module github.com/go-coldbrew/data-builder
33
go 1.17
44

55
require (
6+
github.com/go-coldbrew/tracing v0.0.1
67
github.com/goccy/go-graphviz v0.0.9
78
github.com/google/go-cmp v0.5.8
8-
github.com/princjef/gomarkdoc v0.3.1
9+
github.com/princjef/gomarkdoc v0.4.0
910
github.com/stretchr/testify v1.7.0
1011
go.uber.org/goleak v1.1.12
1112
k8s.io/apimachinery v0.23.3
@@ -17,29 +18,34 @@ require (
1718
github.com/cheggaaa/pb/v3 v3.0.8 // indirect
1819
github.com/davecgh/go-spew v1.1.1 // indirect
1920
github.com/emirpasic/gods v1.12.0 // indirect
20-
github.com/fatih/color v1.11.0 // indirect
21+
github.com/fatih/color v1.12.0 // indirect
2122
github.com/fogleman/gg v1.3.0 // indirect
2223
github.com/fsnotify/fsnotify v1.4.9 // indirect
2324
github.com/go-git/gcfg v1.5.0 // indirect
2425
github.com/go-git/go-billy/v5 v5.3.1 // indirect
2526
github.com/go-git/go-git/v5 v5.3.0 // indirect
2627
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
28+
github.com/golang/protobuf v1.5.2 // indirect
2729
github.com/hashicorp/hcl v1.0.0 // indirect
2830
github.com/imdario/mergo v0.3.12 // indirect
2931
github.com/inconshreveable/mousetrap v1.0.0 // indirect
3032
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
3133
github.com/kevinburke/ssh_config v1.1.0 // indirect
3234
github.com/magiconair/properties v1.8.5 // indirect
3335
github.com/mattn/go-colorable v0.1.8 // indirect
34-
github.com/mattn/go-isatty v0.0.12 // indirect
36+
github.com/mattn/go-isatty v0.0.14 // indirect
3537
github.com/mattn/go-runewidth v0.0.12 // indirect
3638
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
3739
github.com/mitchellh/go-homedir v1.1.0 // indirect
38-
github.com/mitchellh/mapstructure v1.4.1 // indirect
40+
github.com/mitchellh/mapstructure v1.4.2 // indirect
41+
github.com/newrelic/go-agent/v3 v3.9.0 // indirect
42+
github.com/onsi/ginkgo v1.16.2 // indirect
43+
github.com/onsi/gomega v1.13.0 // indirect
44+
github.com/opentracing/opentracing-go v1.2.0 // indirect
3945
github.com/pelletier/go-toml v1.9.1 // indirect
4046
github.com/pkg/errors v0.9.1 // indirect
4147
github.com/pmezard/go-difflib v1.0.0 // indirect
42-
github.com/princjef/mageutil v0.1.0 // indirect
48+
github.com/princjef/mageutil v1.0.0 // indirect
4349
github.com/rivo/uniseg v0.2.0 // indirect
4450
github.com/russross/blackfriday/v2 v2.1.0 // indirect
4551
github.com/sergi/go-diff v1.2.0 // indirect
@@ -53,12 +59,15 @@ require (
5359
github.com/subosito/gotenv v1.2.0 // indirect
5460
github.com/x-cray/logrus-prefixed-formatter v0.5.2 // indirect
5561
github.com/xanzy/ssh-agent v0.3.0 // indirect
56-
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a // indirect
62+
golang.org/x/crypto v0.0.0-20210915214749-c084706c2272 // indirect
5763
golang.org/x/image v0.0.0-20200119044424-58c23975cae1 // indirect
5864
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
59-
golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e // indirect
65+
golang.org/x/sys v0.0.0-20210917161153-d61c044b1678 // indirect
6066
golang.org/x/term v0.0.0-20210503060354-a79de5458b56 // indirect
6167
golang.org/x/text v0.3.7 // indirect
68+
google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4 // indirect
69+
google.golang.org/grpc v1.40.0 // indirect
70+
google.golang.org/protobuf v1.27.1 // indirect
6271
gopkg.in/ini.v1 v1.62.0 // indirect
6372
gopkg.in/warnings.v0 v0.1.2 // indirect
6473
gopkg.in/yaml.v2 v2.4.0 // indirect

0 commit comments

Comments
 (0)