Skip to content

OutboundMetadata

Defined in: packages/hoppity/src/interceptors/types.ts:30

Metadata available to outbound wrappers when a message is published. The contract isn’t known until call time (publish is contract-agnostic), so metadata is constructed per-call rather than at build time.

contract: EventContract<string, string, ZodTypeAny> | CommandContract<string, string, ZodTypeAny> | RpcContract<string, string, ZodTypeAny, ZodTypeAny>

Defined in: packages/hoppity/src/interceptors/types.ts:32

The contract being published to


kind: "event" | "command" | "rpc"

Defined in: packages/hoppity/src/interceptors/types.ts:34

Operation kind — drives span naming and metric labels


serviceName: string

Defined in: packages/hoppity/src/interceptors/types.ts:36

The service name from hoppity.service()