GitXplorerGitXplorer
d

hands-on-sentry

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
541700e89b682723dbf770421fbd4e47b894619a

Remove exercise links for now

ddanielkhan committed 2 years ago
Unverified
9830bda437e6246d3e3d64bedd72fcf34f4f68fd

fix docker link

ddanielkhan committed 2 years ago
Unverified
d0ff7932799f76aba42774e014c16af35d753c6d

Initial commit

ddanielkhan committed 2 years ago
Unverified
6c94eb9eee2a3f1b10235a8a9b3fd5eda41b6d6b

Initail commit

ddanielkhan committed 2 years ago
Verified
b0ce64d1612f0267f2c9cb0f53a553b052a6fe68

Initial commit

ddanielkhan committed 2 years ago

README

The README file for this repository.

Hands on Sentry

This tutorial shows how to configure the OpenTelemetry Demo to be monitored by Sentry.

OpenTelemetry Demo Architecture

Prerequisites

Currently, these instructions assume that you are on a Mac. Windows and Linux version TBD.

Homebrew

"Homebrew installs the stuff you need that Apple (or your Linux system) didn’t."

To install Homebrew, follow the instructions here.

Git

We will use Git to clone our project from Github.

First, let's check if Git is already installed on your system. For that open your terminal and run git --version. If this returns a version, Git is already installed on your system.

If not, run brew install git.

After this operation is completed git --version should work as expected.

Next, Git needs to be configured. For that, run

git config --global user.name "your_github_username"
git config --global user.email "your_email@acme.com"

Docker

Our project uses Docker to run the various services.

To install Docker, download the installer for zour system from the Docker website.

Alternatively, Homebrew can also be used to install Docker.

Visual Studio Code

We will have to modify the projects code when adding Sentry. For this we will use Visual Studio Code. If you have another text editor or IDE installed on your system already, you can use that as well.

To install Visual Studio Code follow this link and download the version for your system.

Windows comes with an installer. On your Mac, unzip the downloaded archive and move the unpacked binary into your Applications folder before running it.

Setting up the project

In your terminal, change into the directory where the demo should be downloaded to.

  1. Run: git clone https://github.com/open-telemetry/opentelemetry-demo.git.
  2. Change into the project directory: cd opentelemetry-demo.

This will use Git to clone the project to your machine.

Now run docker compose up to spin up all the containers in this project.

If this fails right away, make sure that Docker is running.

(Look at docker-compose.yml to review the instructions used by docker compose to accomplish this task)

This step can take several minutes to complete.

Once all the containers are up and running, log messages should appear on the terminal, indicating that the services are ready.

Hint: Open Docker Desktop to inspect your running containers. Docker Desktop.

Once the images are built and containers are started you can access:

The demo also runs a load generator, which will continuously generate traffic, hitting all services.