diff --git a/go/core/core.go b/go/core/core.go index 25ce2dd6..1c36ea92 100644 --- a/go/core/core.go +++ b/go/core/core.go @@ -36,7 +36,17 @@ 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 @@ -44,7 +54,16 @@ type CommenterOptions struct { 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 {