-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(go/adbc/driver/flightsql): allow passing arbitrary grpc dial opt…
…ions in NewDatabase (#2563) Add a new database constructor NewDatabaseWithOptions to allow passing arbitrary user-specified grpc dial options. This is useful for constructs like ```go driver := flightsql.NewDriver(memory.DefaultAllocator) driver.NewDatabaseWithOptions(map[string]string{ "uri": uri, }, grpc.WithStatsHandler(otelgrpc.NewClientHandler()) ) ``` which allows usage of the opentelemetry grpc instrumentation for example. This also provides an escape valve for users that need the ability to use less commonly used grpc client features that we have not exposed via the string map args.
- Loading branch information
1 parent
0cb90c1
commit 28a87ea
Showing
4 changed files
with
89 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters