Skip to content

Commit dcf70f4

Browse files
committed
updated readme
1 parent 6c94180 commit dcf70f4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

go/database/sql/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@ Users are given control over what tags they want to append by using `core.Commen
3434
```go
3535
type CommenterOptions struct {
3636
EnableDBDriver bool
37-
EnableTraceparent bool // OpenTelemetry trace information
38-
EnableRoute bool // applicable for web frameworks
39-
EnableFramework bool // applicable for web frameworks
40-
EnableController bool // applicable for web frameworks
41-
EnableAction bool // applicable for web frameworks
37+
EnableTraceparent bool // OpenTelemetry trace information
38+
EnableRoute bool // applicable for web frameworks
39+
EnableFramework bool // applicable for web frameworks
40+
EnableController bool // applicable for web frameworks
41+
EnableAction bool // applicable for web frameworks
42+
EnableApplication bool // applicable for web frameworks
43+
Application string // user-provided application-name. not required
4244
}
4345
```
4446

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).
48+
4549

4650
### Framework Supported
4751
* [http/net](.../../../http-net/README.md)

0 commit comments

Comments
 (0)