You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: go/database/sql/README.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,18 @@ Users are given control over what tags they want to append by using `core.Commen
34
34
```go
35
35
typeCommenterOptionsstruct {
36
36
EnableDBDriverbool
37
-
EnableTraceparentbool// OpenTelemetry trace information
38
-
EnableRoutebool// applicable for web frameworks
39
-
EnableFrameworkbool// applicable for web frameworks
40
-
EnableControllerbool// applicable for web frameworks
41
-
EnableActionbool// applicable for web frameworks
37
+
EnableTraceparentbool// OpenTelemetry trace information
38
+
EnableRoutebool// applicable for web frameworks
39
+
EnableFrameworkbool// applicable for web frameworks
40
+
EnableControllerbool// applicable for web frameworks
41
+
EnableActionbool// applicable for web frameworks
42
+
EnableApplicationbool// applicable for web frameworks
43
+
Applicationstring// user-provided application-name. not required
42
44
}
43
45
```
44
46
47
+
The driver will try to use the module-name from the project's `go.mod` as the application name if `EnableApplication` is `true` and no `Application` string is provided (works correctly for compiled go applications).
0 commit comments