mediatorlite-observability

Configure MediatorLite logging and OpenTelemetry tracing in .NET applications.

4|1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/behl1anmol/MediatorLite --skill mediatorlite-observability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mediatorlite-observability
Source: https://github.com/behl1anmol/MediatorLite/tree/main/.cursor/skills/mediatorlite-observability
Command: npx skills add https://github.com/behl1anmol/MediatorLite --skill mediatorlite-observability

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MediatorLite users often struggle to get built-in logs and distributed traces working, cannot diagnose why observability emissions are missing, or need to eliminate logging and tracing overhead for performance-sensitive workloads like benchmarks without modifying library code.

Core Features & Use Cases

  • Observability Configuration: Guides correct setup of MediatorLite's fixed Debug-level logging for the MediatorLite.IMediator category and OpenTelemetry tracing via the "MediatorLite" ActivitySource.
  • Compile-Time Opt-Out: Explains how to use no-arg assembly attributes to completely strip logging and tracing emissions at compile time for zero-overhead scenarios.
  • Troubleshooting: Helps diagnose common issues like missing logs due to incorrect filter levels, missing spans due to wrong ActivitySource names, or opt-out attributes applied in the wrong assembly.
  • Use Case: A .NET developer adding OpenTelemetry to a MediatorLite-powered microservice can use this skill to correctly register the ActivitySource, adjust log filters, and verify spans are emitted without writing custom pipeline behaviors.

Quick Start

Use the mediatorlite-observability skill to configure OpenTelemetry tracing for your MediatorLite service and confirm that Send request spans appear in your exporter.

Frequently Asked Questions about mediatorlite-observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure OpenTelemetry tracing for MediatorLite in .NET?

Configure OpenTelemetry tracing for MediatorLite by registering the fixed MediatorLite ActivitySource to ensure Send request spans appear correctly in your exporter without writing custom pipeline behaviors.

Why are my MediatorLite logs not showing up in .NET applications?

MediatorLite logs might not show up because your log filter levels are incorrect for the fixed Debug-level MediatorLite.IMediator category. Adjust the filter configuration to capture these diagnostic emissions.

How can I disable MediatorLite logging and tracing overhead for benchmarks?

Disable MediatorLite logging and tracing overhead for benchmarks by applying no-arg compile-time opt-out assembly attributes to completely strip emissions without modifying library code.

Why are my OpenTelemetry spans missing from MediatorLite requests?

OpenTelemetry spans are missing from MediatorLite requests when using wrong ActivitySource names. Validate generated code to confirm observability emissions are present and the MediatorLite source is registered correctly.

Does MediatorLite support compile-time source generators for observability?

MediatorLite supports compile-time source generators for observability by emitting fixed logging and tracing code, allowing developers to validate generated code or strip emissions via opt-out assembly attributes.

What happens if MediatorLite observability opt-out attributes are in the wrong assembly?

If MediatorLite observability opt-out attributes are in the wrong assembly, compile-time stripping fails. Apply no-arg assembly attributes in the correct project to eliminate logging and tracing overhead.