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 (
3636 Application string = "application"
3737)
3838
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 {
4050 EnableDBDriver bool
4151 EnableRoute bool
4252 EnableFramework bool
4353 EnableController bool
4454 EnableAction bool
4555 EnableTraceparent bool
4656 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
4867}
4968
5069func encodeURL (k string ) string {
You can’t perform that action at this time.
0 commit comments