Observability patterns for Python applications. Triggers on: logging, metrics, tracing, opentelemetry, prometheus, observability, monitoring, structlog, correlation id.
Install with Tessl CLI
npx tessl i github:NeverSight/skills_feed --skill python-observability-patterns83
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Structured logging with structlog
Uses structlog
100%
100%
merge_contextvars processor
100%
100%
add_log_level processor
50%
100%
TimeStamper ISO format
100%
100%
JSONRenderer processor
100%
100%
wrapper_class setting
50%
100%
PrintLoggerFactory setting
100%
100%
get_logger usage
100%
100%
Keyword-argument log calls
100%
100%
bind_contextvars for request ID
80%
100%
ContextVar for request_id
0%
100%
UUID4 fallback request_id
100%
100%
clear_contextvars after request
50%
100%
Without context: $0.2826 · 1m 7s · 16 turns · 23 in / 4,127 out tokens
With context: $0.5085 · 1m 27s · 28 turns · 33 in / 4,903 out tokens
Prometheus metrics instrumentation
Uses prometheus_client
100%
100%
Counter for request totals
100%
100%
Histogram for latency
100%
100%
Gauge for active connections
100%
100%
Counter metric name
100%
100%
Histogram metric name
100%
100%
Histogram buckets
0%
100%
Request labels
42%
100%
perf_counter timing
100%
100%
Active connections tracking
100%
100%
/metrics endpoint
100%
100%
generate_latest with text/plain
80%
100%
Without context: $0.2918 · 1m 7s · 20 turns · 23 in / 4,029 out tokens
With context: $0.3108 · 55s · 17 turns · 272 in / 3,300 out tokens
OpenTelemetry distributed tracing
Uses opentelemetry
100%
100%
TracerProvider setup
100%
100%
BatchSpanProcessor
100%
100%
OTLPSpanExporter
100%
100%
OTLP endpoint
100%
100%
set_tracer_provider
100%
100%
get_tracer with __name__
50%
100%
start_as_current_span
100%
100%
span.set_attribute
100%
100%
Nested child spans
100%
100%
Span naming
100%
100%
Without context: $0.1948 · 41s · 11 turns · 13 in / 2,992 out tokens
With context: $0.4903 · 1m 40s · 25 turns · 388 in / 5,842 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.