rename elasticsearch to elasticsearch_real and change its port to 9201 rename otel-collector to otel-collector_real and change its port to 4319
add this container with the below flow.py. Then make sure you are sending with javascript as python doesn't support OTEL_EXPORTER_OTLP_PROTOCOL=http/json
yet.
then, you can do docker compose logs elasticsearch
and see the POSTs.
elasticsearch:
image: mitmproxy/mitmproxy