Skip to content

Example "observability" project using Play with Blindsight and Honeycomb

License

Notifications You must be signed in to change notification settings

tersesystems/play-blindsight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play-Blindsight

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:

Trace From Play

How It Works

Magic.

Releases

No releases published

Packages

No packages published