{"repo":"build-on-aws/instrumenting-java-apps-using-opentelemetry","free":true,"listed":false,"github":"https://github.com/build-on-aws/instrumenting-java-apps-using-opentelemetry","clone":"git clone https://github.com/build-on-aws/instrumenting-java-apps-using-opentelemetry.git","description":"Microservice written in Java that shows how to instrument applications using OpenTelemetry, to produce telemetry data for traces and metrics. Also how to switch the observability backend without code changes.","language":"Java","stars":50,"topics":["grafana","java","metrics","observability","opentelemetry","prometheus","tracing","opentelemetry-collector","cloud-watch","aws-x-ray"],"license":"MIT-0","category":"analytics","readme_excerpt":"Instrumenting Java Applications using OpenTelemetry This project provides an example of microservice written in Java that produces telemetry data for traces and metrics using OpenTelemetry. It also shows how to de-couple the application from the observability backend using the OpenTelemetry Collector and the OTLP protocol, so you can be easily switch the observability backend for another without code changes. 💡 If you want to learn how to build this code with a hands-on tutorial, you can watch the YouTube series below. Alternatively, you can also read the blog post: https://www.buildon.aws/posts/instrumenting-java-apps-using-opentelemetry Requirements Java 17+ Maven 3.8.6+ Docker 🏢 Running the microservice with Grafana, Grafana Tempo, and Prometheus as observability backend. You can have the microservice sending telemetry data to a local observability backend. Traces will be sent to Grafana Tempo and the metrics to Prometheus. Then you can use Grafana to visualize the the generated telemetry data. 1. Start the containers using Docker Compose. 2. Access the Grafana UI: http://localhost:3000 🌩 Running the microservice with AWS X-Ray and Amazon CloudWatch as observability backend. You can have the microservice sending telemetry data to AWS as observability backend. Traces will be sent to AWS X-Ray and the metrics to Amazon CloudWatch. This is possible thanks to the AWS Distro for OpenTelemetry that provides out-of-the-box integration with AWS services. Before running the code","default_branch":null,"files":null,"tree":[],"storefront":"/r/build-on-aws","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/build-on-aws/instrumenting-java-apps-using-opentelemetry/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}