一键导入
instrumentation
Guidelines for OpenTelemetry instrumentation, observability strategy, and standards.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidelines for OpenTelemetry instrumentation, observability strategy, and standards.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guidelines for creating, reviewing, and improving agent skills.
Guidelines for validation, staging, amending, and commit messages.
Guidelines for dependency injection patterns.
Guidelines for ensuring architectural changes are validated against core use cases.
Orchestrates efficient read and write interactions with the engram unified memory store via MCP tools. Provides deterministic workflows for decomposing observations into atomic memories, composing four-dimensional queries (context, similarity, relationship, time) for maximum retrieval accuracy, managing agent-managed focus context, and linking memories into associative webs at write time. Ensures memories are discoverable, precisely ranked, and structurally connected across sessions.
Guidelines for dual-use architecture (CLI and Go Library), dependency separation, and extensible registry patterns.
| name | instrumentation |
| description | Guidelines for OpenTelemetry instrumentation, observability strategy, and standards. |
checkout), NOT transport (POST /api/checkout).foo.bar), NOT Prometheus contextless names.http.path with placeholders (e.g., /users/{id}). NEVER use http.url (PII risk).Inject trace.Tracer and metric.Meter as dependencies.
type Service struct {
tracer trace.Tracer
meter metric.Meter
}
// Initialize with namespaced tracer/meter
s.tracer = tp.Tracer("github.com/org/repo/pkg/service")
Always set the proper SpanKind.
ctx, span := s.tracer.Start(ctx, "calculate-tax",
trace.WithSpanKind(trace.SpanKindInternal), // or Server, Client, Producer, Consumer
)
defer span.End()
if err != nil {
span.RecordError(err)
span.SetStatus(codes.Error, err.Error())
return err
}
Use httpconv for standard attributes.
// Client
attrs := httpconv.ClientRequest(req)
ctx, span := c.tracer.Start(req.Context(), "HTTP "+req.Method,
trace.WithSpanKind(trace.SpanKindClient),
trace.WithAttributes(attrs...),
)
// Server
attrs := httpconv.ServerRequest("server-name", r)
ctx, span := h.tracer.Start(ctx, "HTTP "+r.Method,
trace.WithSpanKind(trace.SpanKindServer),
trace.WithAttributes(attrs...),
)