#!/bin/bash
# Copyright 2024 Confluent Inc.
# Setting KAFKA_LOG4J_OPTS to empty so that OomOtelEventGeneration will use log4j2.xml file defined in tools package
# This is required as other logging configurations use log4j properties file where as opentelemetry appender works
# only with log4j2
export KAFKA_LOG4J_OPTS=" "
export OTEL_EXPORTER_OTLP_ENDPOINT=http://${HOST_IP}:14317
export KAFKA_HEAP_OPTS="-Xmx64M"
exec $(dirname $0)/kafka-run-class io.confluent.kafka.tools.oomeventgeneration.OomOtelEventGeneration "$@"
