Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

ollygarden/otel-for-programmers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

OTel for Programmers

This is a demonstration project used with our "OTel for Programmers" presentation.

Overview

A simple Go payment service that demonstrates how to implement OpenTelemetry instrumentation for observability. The service provides basic payment processing capabilities through a REST API.

Features

  • Payment creation and retrieval
  • RESTful API endpoints
  • In-memory storage (for demo purposes)
  • Ready for OpenTelemetry instrumentation

API Endpoints

  • GET /api/payment - Retrieve all payments
  • POST /api/payment - Create a new payment

Payment Structure

{
  "id": "pay_1234567890",
  "amount": 100.50,
  "status": "pending",
  "date": "2025-07-03T10:30:00Z"
}

Running the Service

go run main.go

The service will start on port 8080.

Testing the API

Create a payment:

curl -X POST http://localhost:8080/api/payment \
  -H "Content-Type: application/json" \
  -d '{"amount": 100.50}'

Get all payments:

curl http://localhost:8080/api/payment

About the Presentation

This project serves as the foundation for demonstrating OpenTelemetry concepts including:

  • Distributed tracing
  • Metrics collection
  • Observability best practices
  • Integration with monitoring systems

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages