structured-runtime-logging
БесплатноБез исполняемых скриптовНе проверенWrite runtime logs with structured tracing fields, not Debug-formatted values. Use when adding or changing logs for service startup, listener bindings or…
от torrust★ 539 звёзд на GitHubОб этом скилле
Structured Runtime Logging
When logging runtime service identity, emit stable tracing fields instead of
recording RuntimeServiceMetadata, ConfigurationInstanceId, or related
structs through Debug formatting.
Use the canonical fields:
service_role— the canonical role identifier, such ashttp_tracker.instance_index— the canonical zero-based configuration instance index.service_binding— the final protocol and bound socket address, after the listener has successfully bound.
Correct Form
Exclude metadata from automatic #[instrument] capture and add canonical
fields explicitly:
#[instrument(
skip(metadata),
fields(
service_role = metadata.service_role().as_str(),
instance_index = metadata.configuration_instance_id().instance_index(),
)
)]
When a listener binds, log its final service_binding as an explicit field.
tracing::info!(
service_binding = %service_binding.url(),
"Started HTTP tracker"
);
The resulting event has stable, queryable fields:
INFO start_job{service_role="http_tracker" instance_index=1}: Started HTTP tracker service_binding=http://0.0.0.0:7171
Incorrect Form
Do not let #[instrument] capture the metadata parameter automatically, and
do not log the metadata with ? or % formatting:
#[instrument]
async fn start(metadata: RuntimeServiceMetadata) {
tracing::info!(?metadata, "Started HTTP tracker");
}
This creates log output coupled to the Rust struct's Debug representation,
such as metadata=RuntimeServiceMetadata { configuration_instance_id: ... }.
It is not a stable, queryable log contract.
For example, automatic span capture and ?metadata produce implementation
detail in the log instead of canonical fields:
INFO start_job{idx=1 metadata=RuntimeServiceMetadata { configuration_instance_id: ConfigurationInstanceId { service_role: HttpTracker, instance_index: 1 } }}: Started HTTP tracker metadata=RuntimeServiceMetadata { configuration_instance_id: ConfigurationInstanceId { service_role: HttpTracker, instance_index: 1 } }
Do not make Rust field names, struct nesting, or a Debug implementation an
observability contract.
Установить structured-runtime-logging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл structured-runtime-logging?
Write runtime logs with structured tracing fields, not Debug-formatted values. Use when adding or changing logs for service startup, listener bindings or tracing instrumentation.
Как установить скилл structured-runtime-logging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл structured-runtime-logging запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic