Plans, implements, tests, and diagnoses observability for server-side Swift services using Swift Logging, Metrics, Distributed Tracing, OpenTelemetry, Vapor, and Hummingbird.
Ships in server-side-swift. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add, refine, or diagnose observability in a server-side Swift service without confusing production signals with app behavior, deployment config, or low-level networking implementation.
The practical decision is what operators need to know from logs, metrics, traces, health checks, and diagnostics when a service is slow, failing, overloaded, misconfigured, or behaving correctly. Good instrumentation should make incidents easier to understand without leaking secrets or drowning normal operation in noise.
Use repo-local Swift files, checked-out dependency sources, Dash MCP or Dash HTTP for installed Swift package DocC, and then official docs or source when Dash/local coverage is missing or stale. Check one of those source-specific paths before claiming observability behavior:
Use deployment, Docker, Fly.io, persistence, auth, or SwiftNIO docs when the signal depends on process lifecycle, health checks, database queries, credentials, channel pipelines, or runtime configuration.
Package.swiftUse Swift Logging as the default logging API for server-side Swift packages unless the repository has already chosen another facade.
When adding logs:
Prefer structured metadata over string concatenation when the logger supports it. Use consistent field names for the same concept across the service.
Do not add noisy per-item logs inside hot loops, request bodies, event-loop reads, or high-volume background jobs unless the log is sampled, debug-only, or explicitly needed for a short diagnostic.
Use Swift Metrics when the service needs aggregate numeric signals.
Prefer metrics for:
Keep metric labels low-cardinality. Use route templates, operation names, status classes, dependency names, queue names, and fixed outcome names. Do not use raw URLs, user IDs, emails, UUIDs, tokens, request bodies, error messages, or unbounded exception strings as labels.
Use Swift Distributed Tracing or the repository's existing tracing package when causal request flow matters.
Prefer traces for:
Keep span names stable and operation-oriented. Attach only metadata that is safe, bounded, and useful for diagnosis.
When using OpenTelemetry, distinguish:
Do not add an exporter or vendor SDK just because spans are added. First check whether the application already owns telemetry export.
For Vapor:
For Hummingbird:
Application, Router, middleware, and request context shapeUse swiftnio-workflow when instrumentation crosses into channel handlers, low-level protocol flow, event-loop latency, or back-pressure.
Health signals are operational contracts.
Use liveness for "process is alive" and readiness for "service can safely receive traffic." Readiness can include dependency checks only when the deployment target expects that behavior and the check will not overload dependencies.
Do not expose internal stack traces, secret names with values, database URLs, token details, or private infrastructure addresses in health responses.
Use deployment-specific workflows for wiring health checks into Docker, Fly.io, CI, load balancers, or process managers.
Choose the smallest validation that proves the signal:
When diagnosis fails, report the exact logger, metric, label, span, propagation header, exporter, route, job, command, environment variable, or deployment surface involved.
Use vapor-server-workflow or hummingbird-server-workflow for route, middleware, command, request context, or framework lifecycle changes that are not primarily instrumentation.
Use swiftnio-workflow for event-loop, channel, pipeline, back-pressure, or protocol-level instrumentation.
Use auth-authorization-workflow when the question is whether auth context is safe to log, trace, or use as an authorization signal.
Use docker-workflow or fly-io-deployment-workflow when the work is about how logs, health checks, ports, or runtime environment reach a container or hosted platform.
Return:
Signal shape: loggers, metrics, spans, health routes, middleware, request context, exporters, and configuration.Docs used: Swift Logging, Metrics, Distributed Tracing, OpenTelemetry, Vapor, Hummingbird, deployment, or SwiftNIO docs consulted.Behavior: what is logged, counted, timed, traced, propagated, redacted, sampled, or exposed.Command path: exact build, test, run, scrape, log, or deploy commands run or recommended.Validation: tests, log output, metric scrape, spans, health result, or deployment evidence.Handoffs: framework, auth, NIO, persistence, Docker, Fly.io, deployment, or operations follow-up when the task crosses this skill's boundary.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
observability, swift-logging, distributed-tracing, opentelemetry, vapor
/server-side-swift:observability-tracing-workflowfrom server-side-swift
npx claudepluginhub gaelic-ghost/socket --plugin server-side-swift13 skills in this plugin
/app-sync-workflowPlan, implement, test, and diagnose app sync contracts in server-side Swift services, including incremental change feeds, cursor or token semantics, idempotent writes, conflict handling, optimistic concurrency, deleted-record/tombstone behavior, background job handoffs, API-shape coordination, and Vapor or Hummingbird integration./auth-authorization-workflowPlan, implement, test, and diagnose server-side Swift authentication and authorization for Vapor and Hummingbird services, including Basic and Bearer auth, JWT, sessions, OAuth or OIDC handoffs, password hashing, token lifecycle, middleware placement, request context, route protection, authorization policy, security-sensitive tests, and deployment secret handoffs./docker-workflowAuthor and diagnose Dockerfile and OCI runtime definitions for server-side Swift while GitHub Actions exclusively builds, tests, publishes, and deploys Linux images./fly-io-deployment-workflowConfigure a GitHub Actions-only Fly.io deployment adapter for an exact prebuilt Swift service image, with protected environments, scoped credentials, health verification, and rollback./hummingbird-server-workflowPlan, build, run, test, and diagnose Hummingbird components under Services/ in the canonical product workspace. Hand fresh component creation and guidance alignment to the workspace service adapter./leaf-rendered-web-workflowPlan, implement, test, and diagnose Leaf-rendered Vapor sites and HTML email with typed contexts, layouts, partials, custom tags, escaping, accessibility, assets, caching, and rendering tests.Other plugins' skills for the same job