File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,34 @@ const (
36
36
Application string = "application"
37
37
)
38
38
39
- type CommenterOptions struct {
39
+ const (
40
+ Route string = "route"
41
+ Controller string = "controller"
42
+ Action string = "action"
43
+ Framework string = "framework"
44
+ Driver string = "db_driver"
45
+ Traceparent string = "traceparent"
46
+ Application string = "application"
47
+ )
48
+
49
+ type CommenterConfig struct {
40
50
EnableDBDriver bool
41
51
EnableRoute bool
42
52
EnableFramework bool
43
53
EnableController bool
44
54
EnableAction bool
45
55
EnableTraceparent bool
46
56
EnableApplication bool
47
- Application string
57
+ }
58
+
59
+ type StaticTags struct {
60
+ Application string
61
+ DriverName string
62
+ }
63
+
64
+ type CommenterOptions struct {
65
+ Config CommenterConfig
66
+ Tags StaticTags
48
67
}
49
68
50
69
func encodeURL (k string ) string {
You can’t perform that action at this time.
0 commit comments