Explanations about patterns applied on API, HTTP Client, and Pub/Sub integrations.
# With docker-compose
docker-compose up -d
# With Make
make up
# With docker-compose
docker-compose restart
# With Make
make restart
# With docker-compose
docker-compose down --remove-orphans --volumes
# With Make
make down
make otel-agent
ℹ️ Use the OTEL agent passing the java agent to the VM arguments:
-javaagent:.otel-dev/otel.jar
OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_METRICS_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4318/v1/metrics
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
OTEL_LOGS_EXPORTER=none
OTEL_SERVICE_NAME=order-api
OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_METRICS_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4318/v1/metrics
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
OTEL_LOGS_EXPORTER=none
OTEL_SERVICE_NAME=authorization-api
OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_METRICS_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4318/v1/metrics
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION=gzip
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
OTEL_LOGS_EXPORTER=none
OTEL_SERVICE_NAME=order-worker
Host | Description |
---|---|
http://localhost:8080 | OpenAPI Order API |
http://localhost:8081 | OpenAPI Authorization API |
http://localhost:8580 | Kafka UI |
http://localhost:4317 | OpenTelemetry GRPC Collector Port |
http://localhost:4318 | OpenTelemetry HTTP Collector Port |
http://localhost:16666 | Jaeger |
http://localhost:9090 | Prometheus |
http://localhost:3000 | Grafana |