Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atatus/distributed-tracing-golang-sample
https://github.com/atatus/distributed-tracing-golang-sample
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/atatus/distributed-tracing-golang-sample
- Owner: atatus
- Created: 2024-06-15T05:59:28.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-06-15T09:33:30.000Z (7 months ago)
- Last Synced: 2024-06-15T10:38:32.886Z (7 months ago)
- Language: Go
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Opentelemetry-Go-Distributed-Tracing
## Requirements
* Go (version >= 1.16)
* MySQL 8
* serve## Install dependencies run below command
* For installation of `serve` see: [https://www.npmjs.com/package/serve](https://www.npmjs.com/package/serve)
```bash
npm install -g serve
```## `.env` file setup
* Copy the `.env.example` file to `.env` in the `root` directory.
* Copy the `.env.example` file to `.env` in the `frontend` directory.
## Start individual microservices using below commands
1) User Service
```sh
go run ./customers
```2) Payment Service
```sh
go run ./payment
```3) Order Service
```sh
go run ./order
```4) Start the frontend using following command
```sh
serve -l 5000 frontend
```5) Access
```bash
http://localhost:5000/
http://localhost:8080/
http://localhost:8081/
http://localhost:8082/
```## OTel Setup
Install Otelcol-contribute [using this link](https://github.com/open-telemetry/opentelemetry-collector-releases/releases)
## Atatus collector Configuration
* you can use collector configuration file `atatus-collector.yaml` for send OTel data to Atatus.
## Run otel-contrib
```bash
./otelcol-contrib --config=/atatus-collector.yaml
```