Skip to content

kameikay/otel-zipkin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Telemetry and Zipkin - Go

Objective

The goal of this project is to develop a system in Go that takes a postal code as input, identifies the city, and returns the current weather (temperature in Celsius, Fahrenheit, and Kelvin), using Open Telemetry and Zipkin to trace the requests.

Technologies and Tools Used

  • Programming Language: Go
  • External APIs: viaCEP and WeatherAPI
  • Observability: Open Telemetry and Zipkin
  • Containerization: Docker

Prerequisites

  • Go 1.16+ installed
  • Docker installed (for running the project via Docker)
  • An internet connection to access external APIs (viaCEP and WeatherAPI)

How to run the project

Environment Variables

  1. Service Input:
  1. Service Orchestration:
  • WEATHER_API_KEY = {YOUR_API_KEY} WeatherAPI
  • SERVICE_NAME = service-orchestration
  • OTEL_COLLECTOR_ADDR = otel-collector:4317

Running via docker-file

  1. Run the following command to start the application:
docker-compose up
  1. Make a request to the service-input:
curl --request POST --url 'http://localhost:8080' -H "Content-Type: application/json" -d '{"cep" : "01001000"}'

Zipkin

To access the Zipkin dashboard, open your browser and go to the following address:

http://localhost:9411

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published