[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HAX0RQARPM6H4RD0538H7H":3,"skill-same:01M6HAX0RQARPM6H4RD0538H7H":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":14,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6HAX0RQARPM6H4RD0538H7H","tracing",null,"Distributed tracing implementation","NeuralBlitz\u002FMito","NeuralBlitz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F79354388?v=4","01M6H8T2TFH477HRS0KTSTKR2E","David Riggs","01M6H8T2YQQDXPYM092P670Z21",0,"MIT","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Ftracing\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27],"distributed","distributed tracing","developer","devops","sre","opencode","engineer","implementation","tracing implementation","2026-11-10 10:12:30",false,"---\nname: tracing\ndescription: Distributed tracing implementation\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: developer, devops-engineer, sre\n  category: devops\n---\n\n## What I do\n\n- Implement distributed tracing in applications\n- Configure tracing collectors and exporters\n- Analyze request flows across services\n- Debug performance issues using traces\n- Correlate traces with logs and metrics\n- Optimize system performance using trace data\n\n## When to use me\n\n- When debugging distributed systems\n- When understanding request flows\n- When identifying bottlenecks\n- When debugging latency issues\n- When building observable systems\n- When optimizing performance\n\n## Key Concepts\n\n### Trace Structure\n\n```\nTrace\n├── Span (Root)\n│   ├── Span (Database)\n│   │   └── Span (Connection Pool)\n│   ├── Span (HTTP Call 1)\n│   ├── Span (HTTP Call 2)\n│   │   └── Span (Retry 1)\n│   └── Span (Cache)\n│\n└── Context\n    ├── Trace ID: abc123\n    └── Span ID: xyz789\n```\n\n### OpenTelemetry Python\n\n```python\nfrom opentelemetry import trace\nfrom opentelemetry.sdk.trace import TracerProvider\nfrom opentelemetry.sdk.trace.export import BatchSpanProcessor\nfrom opentelemetry.exporter.jaeger.thrift import JaegerExporter\nfrom opentelemetry.instrumentation.flask import FlaskInstrumentor\nfrom opentelemetry.instrumentation.requests import RequestsInstrumentor\n\n# Initialize tracing\nprovider = TracerProvider()\nprocessor = BatchSpanProcessor(\n    JaegerExporter(\n        agent_host_name=\"jaeger\",\n        agent_port=6831,\n    )\n)\nprovider.add_span_processor(processor)\ntrace.set_tracer_provider(provider)\n\n# Instrument Flask\nFlaskInstrumentor().instrument_app(app)\nRequestsInstrumentor().instrument()\n\n# Create custom spans\ntracer = trace.get_tracer(__name__)\n\ndef process_order(order_id):\n    with tracer.start_as_current_span(\"process_order\") as span:\n        span.set_attribute(\"order.id\", order_id)\n        \n        # Database call\n        with tracer.start_as_current_span(\"db.save\") as span:\n            span.set_attribute(\"db.system\", \"postgresql\")\n            save_order(order_id)\n            \n        # External API call\n        with tracer.start_as_current_span(\"http.payment\") as span:\n            span.set_attribute(\"http.method\", \"POST\")\n            span.set_attribute(\"http.url\", \"https:\u002F\u002Fapi.payment.com\u002Fcharge\")\n            call_payment_api(order_id)\n```\n\n### Jaeger Configuration\n\n```yaml\napiVersion: jaegertracing.io\u002Fv1\nkind: Jaeger\nmetadata:\n  name: jaeger\nspec:\n  strategy: all-in-one\n  collector:\n    maxTraces: 100000\n    resources:\n      limits:\n        cpu: 500m\n        memory: 512Mi\n  query:\n    options:\n      basePath: \u002Fjaeger\n  storage:\n    type: elasticsearch\n    elasticsearch:\n      nodeCount: 3\n      redundancyPolicy: SingleRedundancy\n```\n\n### Zipkin\n\n```java\n\u002F\u002F Spring Boot with Zipkin\n@SpringBootApplication\n@EnableZipkinTracer\npublic class Application {\n    public static void main(String[] args) {\n        SpringApplication.run(Application.class, args);\n    }\n}\n\n\u002F\u002F Service discovery with Eureka\n@Bean\npublic Brave brave() {\n    return Brave.Builder(\"my-service\")\n        .spanReporter(zipkin)\n        .build();\n}\n\n@Bean\npublic Tracer tracer(Brave brave) {\n    return brave;\n}\n```\n\n### Trace Query\n\n```logql\n# Jaeger query\nservice = user-api\noperation = \u002Fapi\u002Fusers\nlimit = 20\n\n# Filter by tags\nhttp.method = GET\nhttp.status_code = 200\nerror = true\n\n# Time range\nstart = 2024-01-15T10:00:00Z\nend = 2024-01-15T10:30:00Z\n```\n\n### Distributed Context Propagation\n\n```python\n# Manual context propagation\nfrom opentelemetry import trace\n\ndef call_downstream_service(url, headers):\n    # Extract context from incoming request\n    ctx = trace.get_current_span().get_context()\n    \n    # Inject context into headers\n    tracer = trace.get_tracer(__name__)\n    with tracer.start_as_current_span(\"call_downstream\") as span:\n        # Add downstream span to trace\n        carrier = {}\n        trace.propagation.inject(span.get_context(), carrier)\n        \n        # Make HTTP call with propagated context\n        response = requests.get(\n            url,\n            headers={**headers, **carrier}\n        )\n        return response\n```\n\n### Performance Analysis\n\n```python\n# Analyze traces for performance\nclass TraceAnalyzer:\n    def __init__(self, jaeger_client):\n        self.client = jaeger_client\n        \n    def find_slow_traces(self, threshold_ms=1000):\n        return self.client.query(\n            service='api',\n            lookback='1h',\n            min_duration=threshold_ms * 1000  # microseconds\n        )\n        \n    def analyze_bottlenecks(self, service):\n        spans = self.client.get_service_spans(service)\n        \n        # Group by operation\n        by_operation = defaultdict(list)\n        for span in spans:\n            by_operation[span.operation_name].append(span)\n            \n        # Calculate average duration per operation\n        results = {}\n        for op, spans in by_operation.items():\n            avg_duration = sum(s.duration for s in spans) \u002F len(spans)\n            results[op] = avg_duration\n            \n        return sorted(results.items(), key=lambda x: x[1], reverse=True)\n        \n    def find_error_patterns(self):\n        return self.client.query(\n            service='api',\n            tag={'error': 'true'}\n        )\n```\n\n### Trace-Based Optimization\n\n1. **Identify Slow Operations**: Find spans with high duration\n2. **Find Serial Dependencies**: Look for sequential spans\n3. **Detect Unnecessary Calls**: Find duplicate or retry spans\n4. **Analyze Cache Hit Rates**: Check for repeated DB\u002Fcache calls\n5. **Optimize Database Queries**: Find N+1 query patterns\n6. **Reduce Network Hops**: Minimize service-to-service calls\n","## What I do\n\n- Implement distributed tracing in applications\n- Configure tracing collectors and exporters\n- Analyze request flows across services\n- Debug performance issues using traces\n- Correlate traces with logs and metrics\n- Optimize system performance using trace data\n\n## When to use me\n\n- When debugging distributed systems\n- When understanding request flows\n- When identifying bottlenecks\n- When debugging latency issues\n- When building observable systems\n- When optimizing performance\n\n## Key Concepts\n\n### Trace Structure\n\n```\nTrace\n├── Span (Root)\n│   ├── Span (Database)\n│   │   └── Span (Connection Pool)\n│   ├── Span (HTTP Call 1)\n│   ├── Span (HTTP Call 2)\n│   │   └── Span (Retry 1)\n│   └── Span (Cache)\n│\n└── Context\n    ├── Trace ID: abc123\n    └── Span ID: xyz789\n```\n\n### OpenTelemetry Python\n\n```python\nfrom opentelemetry import trace\nfrom opentelemetry.sdk.trace import TracerProvider\nfrom opentelemetry.sdk.trace.export import BatchSpanProcessor\nfrom opentelemetry.exporter.jaeger.thrift import JaegerExporter\nfrom opentelemetry.instrumentation.flask import FlaskInstrumentor\nfrom opentelemetry.instrumentation.requests import RequestsInstrumentor\n\n# Initialize tracing\nprovider = TracerProvider()\nprocessor = BatchSpanProcessor(\n    JaegerExporter(\n        agent_host_name=\"jaeger\",\n        agent_port=6831,\n    )\n)\nprovider.add_span_processor(processor)\ntrace.set_tracer_provider(provider)\n\n# Instrument Flask\nFlaskInstrumentor().instrument_app(app)\nRequestsInstrumentor().instrument()\n\n# Create custom spans\ntracer = trace.get_tracer(__name__)\n\ndef process_order(order_id):\n    with tracer.start_as_current_span(\"process_order\") as span:\n        span.set_attribute(\"order.id\", order_id)\n        \n        # Database call\n        with tracer.start_as_current_span(\"db.save\") as span:\n            span.set_attribute(\"db.system\", \"postgresql\")\n            save_order(order_id)\n            \n        # External API call\n        with tracer.start_as_current_span(\"http.payment\") as span:\n            span.set_attribute(\"http.method\", \"POST\")\n            span.set_attribute(\"http.url\", \"https:\u002F\u002Fapi.payment.com\u002Fcharge\")\n            call_payment_api(order_id)\n```\n\n### Jaeger Configuration\n\n```yaml\napiVersion: jaegertracing.io\u002Fv1\nkind: Jaeger\nmetadata:\n  name: jaeger\nspec:\n  strategy: all-in-one\n  collector:\n    maxTraces: 100000\n    resources:\n      limits:\n        cpu: 500m\n        memory: 512Mi\n  query:\n    options:\n      basePath: \u002Fjaeger\n  storage:\n    type: elasticsearch\n    elasticsearch:\n      nodeCount: 3\n      redundancyPolicy: SingleRedundancy\n```\n\n### Zipkin\n\n```java\n\u002F\u002F Spring Boot with Zipkin\n@SpringBootApplication\n@EnableZipkinTracer\npublic class Application {\n    public static void main(String[] args) {\n        SpringApplication.run(Application.class, args);\n    }\n}\n\n\u002F\u002F Service discovery with Eureka\n@Bean\npublic Brave brave() {\n    return Brave.Builder(\"my-service\")\n        .spanReporter(zipkin)\n        .build();\n}\n\n@Bean\npublic Tracer tracer(Brave brave) {\n    return brave;\n}\n```\n\n### Trace Query\n\n```logql\n# Jaeger query\nservice = user-api\noperation = \u002Fapi\u002Fusers\nlimit = 20\n\n# Filter by tags\nhttp.method = GET\nhttp.status_code = 200\nerror = true\n\n# Time range\nstart = 2024-01-15T10:00:00Z\nend = 2024-01-15T10:30:00Z\n```\n\n### Distributed Context Propagation\n\n```python\n# Manual context propagation\nfrom opentelemetry import trace\n\ndef call_downstream_service(url, headers):\n    # Extract context from incoming request\n    ctx = trace.get_current_span().get_context()\n    \n    # Inject context into headers\n    tracer = trace.get_tracer(__name__)\n    with tracer.start_as_current_span(\"call_downstream\") as span:\n        # Add downstream span to trace\n        carrier = {}\n        trace.propagation.inject(span.get_context(), carrier)\n        \n        # Make HTTP call with propagated context\n        response = requests.get(\n            url,\n            headers={**headers, **carrier}\n        )\n        return response\n```\n\n### Performance Analysis\n\n```python\n# Analyze traces for performance\nclass TraceAnalyzer:\n    def __init__(self, jaeger_client):\n        self.client = jaeger_client\n        \n    def find_slow_traces(self, threshold_ms=1000):\n        return self.client.query(\n            service='api',\n            lookback='1h',\n            min_duration=threshold_ms * 1000  # microseconds\n        )\n        \n    def analyze_bottlenecks(self, service):\n        spans = self.client.get_service_spans(service)\n        \n        # Group by operation\n        by_operation = defaultdict(list)\n        for span in spans:\n            by_operation[span.operation_name].append(span)\n            \n        # Calculate average duration per operation\n        results = {}\n        for op, spans in by_operation.items():\n            avg_duration = sum(s.duration for s in spans) \u002F len(spans)\n            results[op] = avg_duration\n            \n        return sorted(results.items(), key=lambda x: x[1], reverse=True)\n        \n    def find_error_patterns(self):\n        return self.client.query(\n            service='api',\n            tag={'error': 'true'}\n        )\n```\n\n### Trace-Based Optimization\n\n1. **Identify Slow Operations**: Find spans with high duration\n2. **Find Serial Dependencies**: Look for sequential spans\n3. **Detect Unnecessary Calls**: Find duplicate or retry spans\n4. **Analyze Cache Hit Rates**: Check for repeated DB\u002Fcache calls\n5. **Optimize Database Queries**: Find N+1 query patterns\n6. **Reduce Network Hops**: Minimize service-to-service calls\n",{"name":5,"license":15,"metadata":33,"description":7,"compatibility":24},{"audience":34,"category":22},"developer, devops-engineer, sre","main","2ea764e153842704d24a2e9aa4170441a7f03081",".opencode\u002Fskills\u002Ftracing","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito","https:\u002F\u002Fgithub.com\u002FNeuralBlitz","nuralnexus.org","Independent Multidisciplinary Researcher, Creative Producer, and AI Systems Architect\r\nAn independent creator and research-driven systems designer.","2026-11-12 03:13:05",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add NeuralBlitz\u002FMito --skill tracing",{"tool":49,"command":50},"bunx","bunx skills add NeuralBlitz\u002FMito --skill tracing",{"tool":52,"command":53},"pnpm","pnpm dlx skills add NeuralBlitz\u002FMito --skill tracing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Ftracing\u002FSKILL.md",true,[],[58,74,86,99,107,122],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":28},"01M6HAZSAQK1S27CEZYAYJTQDX","wireless-communications","Wireless systems, mobile networks, and 5G\u002F6G","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwireless-communications\u002FSKILL.md",[],[65,66,67,68,69,70,71,72,24,73],"communications","wireless communications","wireless","systems","engineering","networks","5G","students","mobile",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":28},"01M6HAZFX6E8NK3WZWDX5YCKYY","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwebassembly\u002Fwebsockets\u002FSKILL.md",[],[76,81,82,26,24,83,84,85],"websocket implementation","time","real-time","websocket","best practices",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":28},"01M6HAZ6DAXBQ7QHXXM1EM7715","vulnerability-auditing","Vulnerability assessment and auditing","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvulnerability-auditing\u002FSKILL.md",[],[93,94,95,96,24,97,98],"vulnerability","vulnerability auditing","security","vulnerability assessment","cybersecurity","assessment",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":28},"01M6HAZ3FKF3CS9Z3J96RVE2ZE","vulnerability-assessment","Finding and assessing security vulnerabilities","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvue\u002Fvulnerability-assessment\u002FSKILL.md",[],[96,93,98,95,106,24],"vulnerabilities",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":28},"01M6HAYSHM6HKRKEHFP0SGZQX7","vlsi-design","Very-Large-Scale Integration circuit design and semiconductor engineering","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvlsi-design\u002FSKILL.md",[],[114,115,116,117,118,69,119,24,120,72,121],"vlsi design","VLSI","design","hardware","integration","computer","scale","circuit",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":28},"01M6HAYPQ30FFE2JXD7WQJ8R6C","unsupervised","Unsupervised learning concepts","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvisualization\u002Funsupervised\u002FSKILL.md",[],[124,129,24,130,131,132,133,134],"learning","intelligence","unsupervised learning","machine","concepts","machine-learning"]