export function encodeEventStreamKey(eventType: string, environment: string): string {
    return `${eventType}|${environment}`;
}

export function decodeEventStreamKey(key: string): [string , string] {
    const [eventType, environment] = key.split('|');
    return [eventType, environment];
}
