Skip to content

InboundMetadata

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

Metadata available to inbound wrappers when a message is received. Provides contract identity and raw AMQP message headers so wrappers can extract trace context or other propagated data.

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

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

The contract this handler is bound to


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

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

Operation kind — drives span naming and metric labels


message: object

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

AMQP message surface — headers for trace context extraction, properties for message metadata

headers: Record<string, any>

properties: Record<string, any>


serviceName: string

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

The service name from hoppity.service()