Commit graph

7 commits

Author SHA1 Message Date
Radek Simko
0fe906fa8c make copyrightfix 2026-02-17 13:56:34 +00:00
Liam Cervante
915b174da3
stacks: split the terraform1 RPC package into per-service packages (#35513)
* stacks: split the terraform1 RPC package into per-service packages

* pull latest changes
2024-08-07 17:33:51 +02:00
Alisdair McDiarmid
698caa7f9a rpcapi: Allow stopping long-running operations
The new Setup.Stop RPC allows clients to abort long-running operations.
Each operation implementation must add itself to the server's stopper,
and listen on the given channel for a signal to abort.

In this commit, plan, apply, and validate operations translate the stop
signal into a context cancellation. This alone is not yet sufficient for
a truly graceful shutdown, so in later commits we need to adjust the
stacks runtime to instruct the modules runtime to stop on cancellation.
2024-05-27 15:44:06 -07:00
Michael Yocca
ee5cda7000
feat(stacks): add CLI config in RPC API handshake (#35146)
Adds support for including fields typically found in the Terraform CLI configuration in the RPC API handshake. This allows us to include global configuration arguments that impact the RPC API session without requiring instrumentation for each RPC service. The new Config struct currently supports only service discovery credentials, but it can be expanded in the future.
2024-05-17 16:59:17 -07:00
Martin Atkins
ac93c1bb82 rpcapi: Add HashiCorp copyright comments 2023-11-15 12:38:55 -08:00
Martin Atkins
e8e20a2b0a rpcapi: Emit top-level tracing spans for requests
rpcapi is a normal gRPC server once it's running, so if the overall
Terraform CLI process has been configured to export telemetry then this
will emit a span for each incoming gRPC request.

In later commits we'll hopefully add further telemetry downstream to cover
interesting child spans such as running Terraform Core operations, but
this is at least enough to observe which requests a client is making
and what their outcomes were.
2023-11-15 12:38:51 -08:00
Martin Atkins
38d66ea74d rpcapi: Initial stubbing of the plugin server setup 2023-11-15 12:38:50 -08:00