-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
95632: obsservice: turn the ObsService into an OTLP server r=andreimatei a=andreimatei This patch makes the Obs Service implement the OTLP Logs gRPC service. This reverses the connection direction for exporting events out of CRDB: now CRDB connects out to the Obs Service through a new --obsservice-addr flag. The Obs Service gets a new `--otlp-addr` flag taking the host:port on which to expose the service. By using standard OTLP we can have the data flow through an OpenTelemetry Collector before going to the Obs Service. This makes the Obs Service topology more flexible (since we can rely on the collector to be deployed widely and funnel the data), and gives the collector the opportunity to tee the data to other destinations. Release note: None Epic: CRDB-23641 95702: server,sql: add an interface for internal SQL sessions r=andreimatei a=andreimatei This patch adds a way for a CRDB node to open pgwire connections to itself. This is implemented through the use of net.Conn's implemented by in-memory pipes. I want to use this in particular in order to embed the Obs Service into CRBD. The Obs Service is a library that wants to be given a handle to the backend database in the form of a pgx connection pool. Now such a connection pool can be created based on this new "network" interface, without any network actually being involved. Beyond that, I think this is a generally useful feature that we should have had for a long time - frequently it's useful internally to have a SQL session against the cluster; so far we've been doing that with the InternalExecutor, except that guy doesn't actually support sessions (it mostly supports single statements). Release note: None Epic: None 96155: sql: add a SHOW CLUSTER SETTING sql.defaults deprecation notice r=rafiss a=mastersobg Release note (sql change): The `ALTER ROLE` syntax` allows users to set default values for session variables making `SET CLUSTER SETTINGS sql.defaults...` redundant. This PR adds a notice to `SHOW CLUSTER SETTING sql.defaults...` that directs the user to use the `ALTER ROLE` syntax instead. Fixes: #88520 Co-authored-by: Andrei Matei <[email protected]> Co-authored-by: Ivan Gorbachev <[email protected]>
- Loading branch information
Showing
46 changed files
with
817 additions
and
718 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
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
Oops, something went wrong.