pkg-otel

Initialize OpenTelemetry tracing and metrics for Go projects with OTLP exporters.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ep0ll/bons-ci --skill pkg-otel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pkg-otel
Source: https://github.com/ep0ll/bons-ci/tree/main/.agents/skills/packages/otel
Command: npx skills add https://github.com/ep0ll/bons-ci --skill pkg-otel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the integration of tracing and metrics into Go applications, simplifying observability setup for developers.

Core Features & Use Cases

  • Tracer and Metric Initialization: Automates the setup of tracing and metrics exporters with configuration options.
  • Span Management: Provides utilities for creating, annotating, and linking spans during application execution.
  • Use Case: A developer wants to instrument a Go microservice to monitor request flows and collect performance metrics efficiently.

Quick Start

Use the otel skill to initialize tracing and metrics, then instrument your code with provided span functions to enable observability.

Frequently Asked Questions about pkg-otel

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

FAQPage Schema
How do I set up distributed tracing in a Go microservice?

Go microservice observability requires configuring tracer and metrics exporters first, then instrumenting application code with span creation utilities to monitor distributed request flows and collect performance metrics efficiently.

What is contextual propagation in OpenTelemetry for Go applications?

Contextual propagation in OpenTelemetry ensures trace context flows seamlessly across service boundaries, maintaining span relationships. It uses standard propagation methods to link spans during distributed request execution.

Can I use this observability setup for production-grade Go services?

Yes, this observability setup suits production-grade Go services requiring detailed distributed tracing and performance monitoring. It adheres to semantic conventions and best practices for reliable production environments.

How do I integrate OTLP exporters with my Go application metrics?

You integrate OTLP exporters by configuring them during tracer and metric initialization. This setup automates the export of tracing and performance monitoring data to your chosen observability backend.

What is the best way to manage spans and collect performance metrics in Go?

The best way to manage spans in Go is using dedicated utilities to create, annotate, and link spans during execution. This approach streamlines metrics collection and simplifies observability setup for developers.