Skip to content

ReeceNana/mpTelemetry-Demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Agent

Clone the repo

Navigate to the system directory and run Maven with the package goal. This will copy the OpenTelemetry Java Agent in to your server config:

cd system mvn package

Start the server:

mvn liberty:run

Without changes, the java agent will be collecting and exporting them to zipkin. You can change the service names and exporters etc... in the jvm.options files:

https://github.com/yasmin-aumeeruddy/mpTelemetry-Demo/blob/main/system/src/main/liberty/config/jvm.options

Navigate to the system endpoint:

localhost:9080/system/properties

Automatic Instrumentation

In a spearate terminal, navigate to the inventory directory and start the server

cd inventory

mvn liberty:run

Traces are collected with automatic instrumentation.

Navigate to the inventory endpoint:

localhost:9081/inventory/systems/localhost

You should see the automatically created spans in the exporter endpoint.

Manual Instrumentation

Manual instrumentation will be enabled if you uncomment the following:


Navigate to the inventory endpoint:

localhost:9081/inventory/systems/localhost

You should see the manually created spans in the exporter endpoint.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 70.8%
  • HTML 29.2%