go-lambda-observability-otel

Add OpenTelemetry tracing and metrics to Go AWS Lambda services.

1|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/primolabs-org/spec-star-go --skill go-lambda-observability-otel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-lambda-observability-otel
Source: https://github.com/primolabs-org/spec-star-go/tree/main/.github/skills/go-lambda-observability-otel
Command: npx skills add https://github.com/primolabs-org/spec-star-go --skill go-lambda-observability-otel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you add consistent OpenTelemetry tracing, metrics, and correlation to Go AWS Lambda services without leaking backend-specific concerns into domain code.

Core Features & Use Cases

  • Centralized telemetry bootstrap: Set up tracer and meter providers in one place for reusable Lambda execution environments.
  • Boundary instrumentation: Add meaningful spans and metrics around HTTP API handlers, SQS processing, and important outbound dependencies.
  • Correlation and safety: Preserve request or message context while keeping signal names stable, low-cardinality, and free of sensitive payloads.
  • Use Case: Use this Skill when a Go Lambda microservice needs portable observability across inbound adapters, application use cases, and AWS SDK v2 calls.

Quick Start

Ask me to add or review OpenTelemetry observability for this Go AWS Lambda service, including provider bootstrap, adapter spans, metrics, and correlation propagation.

Frequently Asked Questions about go-lambda-observability-otel

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add OpenTelemetry tracing and metrics to Go AWS Lambda functions?

To add OpenTelemetry tracing and metrics to Go AWS Lambda, you set up centralized tracer and meter providers, instrument HTTP API and SQS adapters, and propagate context across hexagonal boundaries without leaking backend concerns into domain code.

How do I preserve request correlation across hexagonal boundaries in Go Lambda services?

Preserving request correlation across hexagonal boundaries in Go Lambda services requires propagating OpenTelemetry context through inbound adapters and application use cases, ensuring trace spans stay linked without leaking backend-specific telemetry concerns into domain code.

Can I use OpenTelemetry to instrument AWS SDK v2 outbound calls in Go Lambda?

Yes, you can use OpenTelemetry to instrument AWS SDK v2 outbound calls in Go Lambda. The Skill provides safe instrumentation for outbound dependencies, adding meaningful spans and metrics around these calls while keeping signal names stable and low-cardinality.

What is the best way to bootstrap OpenTelemetry providers for Go Lambda microservices?

The best way to bootstrap OpenTelemetry providers for Go Lambda microservices is centralized setup in one place for reusable execution environments, establishing tracer and meter providers that apply consistently across inbound adapters, use cases, and AWS SDK v2 calls.

How do I keep OpenTelemetry spans low-cardinality when instrumenting SQS processing in Go?

To keep OpenTelemetry spans low-cardinality when instrumenting SQS processing in Go, use stable signal names and avoid injecting sensitive payloads or high-cardinality message attributes into span or metric data during boundary instrumentation.

Does OpenTelemetry instrumentation leak backend-specific concerns into Go domain code?

No, OpenTelemetry instrumentation does not leak backend-specific concerns into Go domain code when applied correctly. This Skill ensures portable observability by centralizing provider setup and instrumenting boundaries, keeping domain logic clean and telemetry concerns separated.