golang-observability
Instrument Go Services for Production Observability
Missing telemetry makes production failures difficult to diagnose. This skill guides Go instrumentation with structured logs, metrics, traces, profiling, and analytics privacy considerations.
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "golang-observability" from https://skillstore.io/skills/samber-golang-observability.md and its manifest at https://skillstore.io/api/skills/samber-golang-observability/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“golang-observability”。 Review request metrics that label every request with its full path and user ID.
预期结果:
- Both labels can create unbounded time series and increase monitoring memory use.
- Replace raw paths with route templates and remove user IDs from metric labels.
- Use access-controlled traces for necessary user-level correlation.
正在使用“golang-observability”。 Our 99.9% availability alert produces noise during short error spikes.
预期结果:
- Review the availability definition and error-budget calculation.
- Pair short and long burn-rate windows to distinguish sustained degradation from brief spikes.
- Validate thresholds and persistence durations against historical traffic before enabling paging.
正在使用“golang-observability”。 Review a proposed production profiling integration.
预期结果:
- Keep pprof on a protected internal listener.
- Use encrypted collector transport and redact credentials from startup logs.
- Start with selected profile types and measure overhead on a limited replica set.
安全审计
高风险Most static findings are false positives involving Markdown, Go syntax, PromQL expressions, and evaluation fixtures; one profiling URL example encourages credentials over plaintext HTTP. Five additional findings cover credential logging, missing authorization in privacy examples, incomplete erasure reporting, unbounded metric labels, and misleading identifier privacy claims. No evidence found of malicious execution, unauthorized exfiltration intent, or audit-directed prompt injection.
已确认安全问题 (5)
能力复核项 (1)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
⚙️ 外部命令 (38)
🌐 网络访问 (8)
📁 文件系统访问 (5)
🔑 环境变量 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/samber-golang-observability/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/samber-golang-observability?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/samber-golang-observability?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/samber-golang-observability/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/samber-golang-observability.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
samber. (2026). golang-observability security audit report (audit version 1) [Author version 1.3.2]. Skillstore. https://skillstore.io/skills/samber-golang-observability/audits/1BibTeX 引用
@techreport{samber-samber-golang-observability-2026,
author = {samber},
title = {golang-observability security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/samber-golang-observability/audits/1},
note = {Author version 1.3.2}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "golang-observability security audit report (audit version 1)"
version: "1.3.2"
type: report
authors:
- name: "samber"
date-released: "2026-10-18"
url: "https://skillstore.io/skills/samber-golang-observability/audits/1"
identifiers:
- type: other
value: "skillstore:samber-golang-observability:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Instrument a New Go API
Add request metrics, structured logs, and trace spans before releasing a new service.
Improve Production Alerting
Review metric labels, latency histograms, and error-budget alerts to reduce monitoring noise and identify coverage gaps.
Review Analytics Data Flows
Evaluate server-side event tracking, consent handling, identifiers, and deletion workflows with engineering and privacy stakeholders.
试试这些提示
Review this Go handler for structured slog fields, context propagation, log levels, and sensitive data. Explain the smallest useful changes.
Instrument this Go router with request counters and latency histograms. Use route templates, bounded labels, suitable buckets, and PromQL comments.
Review this Go service's OpenTelemetry setup. Preserve context across database and HTTP calls, correlate slog records, and propose sampling and exemplar settings.
Audit this Go repository across logs, metrics, traces, profiles, and analytics. Report evidence, security gaps, and prioritized fixes without changing production settings.
最佳实践
- Validate library APIs and telemetry examples against the versions installed in your project.
- Use bounded metric labels, intentional sampling, and tested alert thresholds before production rollout.
- Protect profiling endpoints, redact secrets, and verify authorization and consent before processing user telemetry.
避免
- Copying examples into production without security review or integration tests.
- Using raw paths, user IDs, or request IDs as metric labels.
- Treating pseudonymous identifiers as anonymous data or assuming analytics examples guarantee compliance.