mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
feat(plugin-server): Add WARPSTREAM_PRODUCER kafka config target (#41194)
This commit is contained in:
@@ -10,7 +10,7 @@ export const RDKAFKA_LOG_LEVEL_MAPPING = {
|
||||
ERROR: 3,
|
||||
}
|
||||
|
||||
export type KafkaConfigTarget = 'PRODUCER' | 'CONSUMER' | 'CDP_PRODUCER'
|
||||
export type KafkaConfigTarget = 'PRODUCER' | 'CONSUMER' | 'CDP_PRODUCER' | 'WARPSTREAM_PRODUCER'
|
||||
|
||||
export const getKafkaConfigFromEnv = (prefix: KafkaConfigTarget): GlobalConfig => {
|
||||
// NOTE: We have learnt that having as much exposed config to the env as possible is really useful
|
||||
|
||||
@@ -299,7 +299,7 @@ export class SessionRecordingIngester {
|
||||
|
||||
// Initialize overflow producer if not consuming from overflow
|
||||
if (!this.consumeOverflow) {
|
||||
this.kafkaOverflowProducer = await KafkaProducerWrapper.create(this.hub, 'CONSUMER')
|
||||
this.kafkaOverflowProducer = await KafkaProducerWrapper.create(this.hub, 'WARPSTREAM_PRODUCER')
|
||||
}
|
||||
|
||||
// Initialize restriction handler with the overflow producer
|
||||
|
||||
Reference in New Issue
Block a user