Files
klz-cables.com/.pnpm-store/v10/files/8b/1f5a3696e9428b723cdfcb4ebeaa89a616722f09654e8796ad680bc8d5585992fdb72cafc8b80be366720121ba9eec97c2cb948bae9e18f09d6dd8cb36423f
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

42 lines
1.8 KiB
Plaintext

import { Envelope, EnvelopeItemType } from '../types-hoist/envelope';
import { Event } from '../types-hoist/event';
import { BaseTransportOptions, Transport } from '../types-hoist/transport';
interface MatchParam {
/** The envelope to be sent */
envelope: Envelope;
/**
* A function that returns an event from the envelope if one exists. You can optionally pass an array of envelope item
* types to filter by - only envelopes matching the given types will be multiplexed.
* Allowed values are: 'event', 'transaction', 'profile', 'replay_event'
*
* @param types Defaults to ['event']
*/
getEvent(types?: EnvelopeItemType[]): Event | undefined;
}
type RouteTo = {
dsn: string;
release: string;
};
type Matcher = (param: MatchParam) => (string | RouteTo)[];
/**
* Key used in event.extra to provide routing information for the multiplexed transport.
* Should contain an array of `{ dsn: string, release?: string }` objects.
*/
export declare const MULTIPLEXED_TRANSPORT_EXTRA_KEY = "MULTIPLEXED_TRANSPORT_EXTRA_KEY";
/**
* Gets an event from an envelope.
*
* This is only exported for use in the tests
*/
export declare function eventFromEnvelope(env: Envelope, types: EnvelopeItemType[]): Event | undefined;
/**
* Creates a transport that can send events to different DSNs depending on the envelope contents.
*
* If no matcher is provided, the transport will look for routing information in
* `event.extra[MULTIPLEXED_TRANSPORT_EXTRA_KEY]`, which should contain
* an array of `{ dsn: string, release?: string }` objects.
*/
export declare function makeMultiplexedTransport<TO extends BaseTransportOptions>(createTransport: (options: TO) => Transport, matcher?: Matcher): (options: TO) => Transport;
export {};
//# sourceMappingURL=multiplexed.d.ts.map