Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added support to enable_open_tracing
  • Loading branch information
harishb2k committed Apr 14, 2024
commit 61647eacfabb23e5a6674fdb005e64e8b86d6c7a
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,31 @@ Check out [an interactive example](https://play.sqlc.dev/) to see it in action,
- [Downloads](https://downloads.sqlc.dev/)
- [Community](https://discord.gg/EcXzGe5SEs)

### Delta on top of main sqlc
Added support for `enable_open_tracing` which adds open tracing to the generated code.
```go
span, ctx := opentracing.StartSpanFromContext(ctx, "MethodName")
defer span.Finish()
```

```yaml
version: "2"
sql:
- engine: "mysql"
queries: "query.sql"
schema: "schema.sql"
gen:
go:
emit_prepared_queries: true
emit_interface: true
enable_open_tracing: true
emit_exact_table_names: false
emit_empty_slices: true
emit_json_tags: true
package: "authors"
out: "./authors"
```

## Supported languages

- [sqlc-gen-go](https://github.com/sqlc-dev/sqlc-gen-go)
Expand Down