Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions go/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,34 @@ const (
Application string = "application"
)

type CommenterOptions struct {
const (
Route string = "route"
Controller string = "controller"
Action string = "action"
Framework string = "framework"
Driver string = "db_driver"
Traceparent string = "traceparent"
Application string = "application"
)

type CommenterConfig struct {
EnableDBDriver bool
EnableRoute bool
EnableFramework bool
EnableController bool
EnableAction bool
EnableTraceparent bool
EnableApplication bool
Application string
}

type StaticTags struct {
Application string
DriverName string
}

type CommenterOptions struct {
Config CommenterConfig
Tags StaticTags
}

func encodeURL(k string) string {
Expand Down