grpc client
grpc client
The grpc client binding adapts grpc request-response streams to http request-response streams.
grpc_server:
type: grpc
kind: client
exit: tcp_serverConfiguration (* required)
catalog
objectas map of namedarray
To map defined catalog for schema retrieval based on catalog specific parameters.
catalog:
my_catalog:
- subject: httpcatalog[].id*
integer
Define specific schema id to refer from catalog.
catalog[].strategy*
enum[topic]
To determine the subject based on the specified strategy.
catalog[].subject*
string
Unique identifier for schema categorization in the catalog.
catalog[].version
string| Default:latest
Specific iteration or version of a registered schema in the defined catalog.
exit
string
Default exit binding when no conditional routes are viable.
exit: echo_serverroutes
arrayofobject
Conditional grpc specific routes. At least one of routes or the top-level exit is required.
routes:
- guarded:
my_guard:
- echo:messages
when:
- method: example.EchoService/*
metadata:
custom-text: custom value
custom-binary:
base64: Y3VzdG9tIHZhbHVl
exit: echo_serverroutes[].guarded
objectas map of namedarrayofstring
Roles required by named guard.
routes:
- guarded:
my_guard:
- echo:messagesroutes[].when
arrayofobject
List of conditions (any match) to match this route. Read more: When a route matches
routes:
when:
- method: example.EchoService/*
metadata:
custom-text: custom value
custom-binary:
base64: Y3VzdG9tIHZhbHVlwhen[].method
string
gRPC service method name, such as example.EchoService/EchoUnary, or service method pattern such as example.EchoService/*.
when[].metadata
objectas map of namedstringorobjectproperties
Metadata header name value pairs (all match).
Each metadata header value can be string or object with base64 property.
metadata.base64
string
Base64 encoded value for binary metadata header.
routes[].exit
string
Routed exit binding when conditional route matches.
routes:
- when:
...
exit: echo_servertelemetry
object
Defines the desired telemetry for the binding.
telemetry.metrics
array
Telemetry metrics to track
telemetry:
metrics:
- stream.*
- grpc.*telemetry.attributes
objectas map of namedstringproperties
Telemetry attributes to add to the binding metrics.

