Play-Blindsight
August 8, 2020 ยท View on GitHub
This is an example Play project that shows how to integrate Play with Honeycomb Tracing using the flow logger from Blindsight.
Requirements
You will need a Honeycomb account, which is free:
https://ui.honeycomb.io/signup
Create a dataset called blindsight-test.
Once you have the account, you'll need to set the environment variables.
export HONEYCOMB_API_KEY=<your-write-key>
export HONEYCOMB_DATASET=blindsight-test
These correspond to the honeycomb appender in conf/logback.xml
<appender name="HONEYCOMB" class="com.tersesystems.logback.honeycomb.HoneycombAppender">
<apiKey>${HONEYCOMB_API_KEY}</apiKey>
<dataSet>${HONEYCOMB_DATASET}</dataSet>
<!-- ... -->
</appender>
Running
Assuming you have sbt and java installed:
sbt run
And go to http://localhost:9000.
You will see the page render.
Now go to the blindsight-test dataset in Honeycomb, and click on the trace that you see down at the bottom. You should see:
