I recently set up multi-tenant Tempo Instance and wanted a quick solution to dump traces into an OTEL Collector. I couldnāt find a simple tutorial from which I could just copy and paste commands, so below is a super quick demo container to achieve this.
Start a Python Container
Exec into the container and install the OTel Python packages, as well as an editor.
Insert this simple script into a Python file
Run the script & you should see this trace appear.
Remember to delete the container after you are done with kubectl delete pod python