View Source Spannex.Service (spannex v0.5.0)

A wrapper around the gRPC/Protobuf service stubs.

Does not necessarily support the entire set of stubbed RPC functions. Will add per-call metadata to the requests as needed.

Note: In the future this module should use :telemetry to emit spans for each gRPC request. This would allow applications to understand how long various requests take and also track things like the number of errors and whether they correlate to particular sessions or request types.

Summary

Functions

Executes a Spanner gRPC request. Per-request metadata may also be added to the gRPC request.

Functions

@spec execute(Spannex.Protocol.t(), term()) :: {:ok, term()} | {:error, term()}

Executes a Spanner gRPC request. Per-request metadata may also be added to the gRPC request.