How sadesh123/opentelemetrytracing works
Main Components
• API Gateway – This is the entry point for HTTP requests. It routes incoming requests to the Lambda function.
• AWS Lambda Function – Your Go-based serverless function (main.go) handles requests. It contains the business logic to:
• Retrieve all NBA shot data.
• Retrieve shot data based on player ID.
• New shot data.
• DynamoDB – NoSQL database that stores the NBA player's shot data.
• OpenTelemetry – Instrumentation library used within your Go code to record and propagate trace information.
Design Principles and Architectural Patterns
• Separation of concerns: front-facing API layer (API Gateway) distinct from business logic (Lambda) and data storage (DynamoDB).
• Serverless design pattern where you rely on managed AWS services for scalability and fault tolerance.
• Distributed tracing instrumentation (OpenTelemetry and AWS X-Ray) to help monitor microservice performance even in what might appear to be a simple architecture.
Incorporate Relevant Technologies
• Labels such as “Go” next to the Lambda function to denote the language and runtime.