maple-go-style

Initialize OpenTelemetry exporters for tracing, logging, and metrics in Go services.

1.6k|107|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/Makisuo/maple --skill maple-go-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maple-go-style
Source: https://github.com/Makisuo/maple/tree/main/skills/maple-go-style
Command: npx skills add https://github.com/Makisuo/maple --skill maple-go-style

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go OpenTelemetry style for Maple: go.opentelemetry.io/otel SDK with otlptracehttp / otlploghttp / otlpmetrichttp exporters, inline endpoint + ingest key, semconv resource attributes including vcs.repository.url.full.

Core Features & Use Cases

  • Inline endpoint and ingest key: embed a project-scoped token for secure telemetry delivery.
  • Unified Go telemetry: initialize tracer, logger, and meter at process start and gracefully shut down on signal.
  • Resource attributes: attach semantic attributes like vcs.repository.url.full to map telemetry to the repo.
  • Use Case: instrument a Maple Go service to send traces, logs, and metrics to Maple's ingest endpoint for observability.

Quick Start

Install the Go OTEL SDK packages and call telemetry.Init(ctx) during app startup, then run the application.

Frequently Asked Questions about maple-go-style

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

FAQPage Schema
How do I instrument a Go backend with OpenTelemetry to send traces and logs to a custom ingest endpoint?

You can instrument a Go backend by initializing otel exporters like otlptracehttp, otlploghttp, and otlpmetrichttp at process startup, embedding an inline endpoint with an ingest key for secure telemetry delivery.

What semantic attributes do I need for Go OpenTelemetry telemetry to map data to a repository?

Go OpenTelemetry telemetry requires setting semconv resource attributes, specifically vcs.repository.url.full, to map incoming traces, logs, and metrics directly to the source repository.

Can I use otlphttp exporters to send metrics, logs, and traces simultaneously from a Go service?

Yes, you can use otlptracehttp, otlploghttp, and otlpmetrichttp exporters together to establish unified end-to-end telemetry for Go services by initializing a tracer, logger, and meter at startup.

How do I gracefully shut down OpenTelemetry exporters in a Go application?

To gracefully shut down OpenTelemetry exporters in a Go application, you must provide a mechanism that listens for a termination signal and triggers the flush and shutdown of telemetry processes.

Does Maple tracing require a project-scoped token for Go OpenTelemetry SDK integration?

Yes, Maple tracing requires an inline ingest key acting as a project-scoped token to securely deliver Go telemetry data from the OpenTelemetry SDK to the ingest endpoint.

What is the best way to establish end-to-end telemetry for Go services using OpenTelemetry?

The best way to establish end-to-end telemetry for Go services is installing the Go OTEL SDK, setting resource attributes like vcs.repository.url.full, and calling telemetry initialization during application startup.