Skip to content

jianshaow/tracing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tracing Example

Research tracing solution on multiple scenarios.

Prerequisite

The exampls need following service:

  • Redis server

  • Mysql server

Database information as below:

Schema: mydb; User: appuser; Password: 123456;

CREATE SCHEMA mydb;
CREATE USER appuser;
SET PASSWORD FOR 'appuser'@'%'=password('123456');
GRANT ALL PRIVILEGES ON mydb.* TO 'appuser'@'%';

CREATE TABLE `mydb`.`application` (
  `id` INT NOT NULL,
  `name` VARCHAR(45) NULL,
  PRIMARY KEY (`id`)
);

INSERT INTO `mydb`.`application` VALUES (1, 'test');
  • Cassandra server Database information as below:

Keyspace: mydb;

CREATE KEYSPACE mydb WITH replication = {'class': 'SimpleStrategy'};

CREATE TABLE mydb.application (
   id int,
   name text,
   PRIMARY KEY (id)
);
  • Jaeger server

Execution

mvn clean install

cd <example path>
mvn jetty:run -Djetty.deployMode=FORK