Setting up your Application

Environment Setup - Application

  • Clone the workshop repository:
git clone -b distributed-tracing-for-development-teams https://github.com/shabuhabs/javashop-otel.git
  • Access the workshop directory:
cd javashop-otel
  • Set Environment Variables
nano .env
Note
  • NO spaces in <your_name>
  • The shop_user provides us an Environment Tag.
  • To get your access token, go to your Splunk O11y UI -> Settings ->Access Tokens.
  • It is assumed in this workshop that you can send traces to the org and token you are using.
  • Set the following values:
SHOP_USER=<your_name>
SPLUNK_ACCESS_TOKEN=<your_token>
SPLUNK_REALM=<your_realm>
  • Save in nano with [CTRL]-o [ENTER]
  • Exit nano with [CTRL]-x

Build and Deploy Application

Let’s get started by building and deploying our Application, the Splunk Instrument Shop. Run the commands below to begin and start reading ahead as your traces are coming up!

  • Build the app
./BuildAndDeploy.sh