Files
klz-cables.com/.pnpm-store/v10/files/8d/13baa7086d1e39444fa042fd3b0e095891f41dce563c24a9a8d5f92e5044fa51ec91e4173560c81cbd5015448b64d6d2c165a6aeca8802360b0bd634abede4
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

28 lines
1.1 KiB
Plaintext

/// <reference types="node" />
/// <reference types="node" />
import { Span } from '@opentelemetry/api';
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
export interface KafkajsMessage {
key?: Buffer | string | null;
value: Buffer | string | null;
partition?: number;
headers?: Record<string, Buffer | string | (Buffer | string)[] | undefined>;
timestamp?: string;
}
export interface MessageInfo<T = KafkajsMessage> {
topic: string;
message: T;
}
export interface KafkaProducerCustomAttributeFunction<T = KafkajsMessage> {
(span: Span, info: MessageInfo<T>): void;
}
export interface KafkaConsumerCustomAttributeFunction<T = KafkajsMessage> {
(span: Span, info: MessageInfo<T>): void;
}
export interface KafkaJsInstrumentationConfig extends InstrumentationConfig {
/** hook for adding custom attributes before producer message is sent */
producerHook?: KafkaProducerCustomAttributeFunction;
/** hook for adding custom attributes before consumer message is processed */
consumerHook?: KafkaConsumerCustomAttributeFunction;
}
//# sourceMappingURL=types.d.ts.map