Skip to content

Commit

Permalink
chore: add otlp support for chronos
Browse files Browse the repository at this point in the history
  • Loading branch information
Amninder Kaur committed Oct 18, 2023
1 parent c9f5bc8 commit 948d1e5
Show file tree
Hide file tree
Showing 29 changed files with 923 additions and 742 deletions.
8 changes: 6 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
RUST_VERSION=stable

# KAFKA
# KAFKA_BROKERS="localhost:9093\,$LOCAL_HOST_IP:9094"
KAFKA_BROKERS="localhost:9092"
KAFKA_HOST="localhost\,$LOCAL_HOST_IP"
KAFKA_PORT=9093
KAFKA_CLIENT_ID="chronos"
KAFKA_GROUP_ID="chronos"
KAFKA_IN_TOPIC="chronos.in"
Expand Down Expand Up @@ -35,3 +35,7 @@ TIMING_ADVANCE=0
FAIL_DETECT_INTERVAL=500
MAX_RETRIES=3
PROCESSOR_DB_POLL=10

# TRACING
OTEL_SERVICE_NAME=chronos
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
12 changes: 8 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ LOCAL_HOST_IP=$(ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}')
RUST_VERSION=stable

# KAFKA
KAFKA_BROKERS="localhost:9093\,$LOCAL_HOST_IP:9094"
#KAFKA_BROKERS="localhost:9093"
KAFKA_HOST="localhost\,$LOCAL_HOST_IP"
KAFKA_PORT="9094"
KAFKA_CLIENT_ID="chronos"
KAFKA_GROUP_ID="chronos"
KAFKA_IN_TOPIC="chronos.in"
Expand All @@ -25,7 +25,7 @@ PG_DATABASE=chronos_db
PG_POOL_SIZE=50

# CONFIG
RUST_LOG=debug
RUST_LOG=info

#APP
DELAY_TIME=0
Expand All @@ -34,4 +34,8 @@ MONITOR_DB_POLL=5
TIMING_ADVANCE=0
FAIL_DETECT_INTERVAL=500
MAX_RETRIES=3
PROCESSOR_DB_POLL=10
PROCESSOR_DB_POLL=10

# TRACING
OTEL_SERVICE_NAME=chronos
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
Loading

0 comments on commit 948d1e5

Please sign in to comment.