golang-echo-otel-middleware
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- Writing
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: golang-echo-otel-middleware
description: Use when adding or configuring github.com/adlandh/echo-otel-middleware/v2 in a Go Echo applicati…
category: writing
runtime: no special runtime
---
# golang-echo-otel-middleware output preview
## PART A: Task fit
- Use case: Use when adding or configuring github.com/adlandh/echo-otel-middleware/v2 in a Go Echo application, or when writing examples for this middleware. Use this skill when adding or configuring github.com/adlandh/echo-otel-middleware/v2 in a Go Echo application, or when writing examples for this middleware. runs entirely locally. Works with Claude Code, Cursor,….
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Essentials / Basic Usage / Config Defaults” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Use when adding or configuring github.com/adlandh/echo-otel-middleware/v2 in a Go Echo application, or when writing examples for this middleware. Use this skill when adding or configuring github.com/adlandh/echo-otel-middleware/v2 in a Go Echo application, or when writing examples for this middleware. runs entirely locally. Works with Claude Code, Cursor,…”.
- **02** When the source has headings, the agent prioritizes “Essentials / Basic Usage / Config Defaults” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/v2`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “Essentials / Basic Usage / Config Defaults”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: golang-echo-otel-middleware
description: Use when adding or configuring github.com/adlandh/echo-otel-middleware/v2 in a Go Echo applicati…
category: writing
source: tomevault-io/skills-registry
---
# golang-echo-otel-middleware
## When to use
- Use when adding or configuring github.com/adlandh/echo-otel-middleware/v2 in a Go Echo application, or when writing ex…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Essentials / Basic Usage / Config Defaults” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "golang-echo-otel-middleware" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Essentials / Basic Usage / Config Defaults
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Skill: golang-echo-otel-middleware
Use this skill when adding or configuring github.com/adlandh/echo-otel-middleware/v2 in a Go Echo application, or when writing examples for this middleware.
Essentials
- Import path must include
/v2:github.com/adlandh/echo-otel-middleware/v2. - Alias examples as
echootelmiddlewareto match the package name and README. - This middleware targets Echo v5: use
github.com/labstack/echo/v5and handler signatures with*echo.Context. Middleware()uses global OpenTelemetry tracer provider and propagator; useMiddlewareWithConfigwhen the app owns explicit OTel setup.
Basic Usage
app := echo.New()
app.Use(echootelmiddleware.Middleware())
Use explicit config when a tracer provider or propagator is constructed by the application:
app.Use(echootelmiddleware.MiddlewareWithConfig(echootelmiddleware.OtelConfig{
TracerProvider: tp,
Propagator: otel.GetTextMapPropagator(),
}))
Config Defaults
TracerProvider:otel.GetTracerProvider().Propagator:otel.GetTextMapPropagator().Skipper: Echomiddleware.DefaultSkipper.BodySkipper: no-op, returnsfalse, false.AreHeadersDump:true.IsBodyDump:false.RemoveNewLines:false.LimitNameSizeandLimitValueSize:0, meaning unlimited.
Safe Body Dumping
- Body dumping is opt-in with
IsBodyDump: truebecause it can capture PII, tokens, and secrets. - Prefer
BodySkipperto exclude sensitive endpoints, compressed bodies, uploads, auth payloads, or large responses. BodySkipperonly runs whenIsBodyDumpis true and returns(skipReqBody, skipRespBody).
BodySkipper: func(c *echo.Context) (bool, bool) {
if c.Request().Header.Get("Content-Encoding") == "gzip" {
return true, true
}
return false, false
},
Attribute Limits
LimitNameSizeandLimitValueSizeare byte-based, not rune-based.- Truncation preserves valid UTF-8; values over a limit greater than 10 get a trailing
.... RemoveNewLinesreplaces\nwith spaces in string attributes, useful for backends such as Sentry.
Do Not Assume
- Metrics are not implemented in this middleware; do not add or document metrics unless explicitly requested.
- Echo v4 examples are wrong for this package because context types and imports differ.
Source: adlandh/echo-otel-middleware — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review