Skip to main content

2 posts tagged with "Traces"

View all tags

NLog-MQTT Custom Target

Sam
author of iotgateway

Creating a custom NLog Target that outputs logs to an MQTT Server for real-time web-based log monitoring via WebSocket-MQTT, instead of traditional WebAPI polling.

Implementation

The custom target overrides the Write method, serializes log events to JSON with both default and custom fields, and publishes to an MQTT topic.

Source Code

NLog.Targets.MQTT

OpenTelemetry Tracing in Industrial IoT

Sam
author of iotgateway

Exploring distributed tracing in .NET8 industrial IoT projects using OpenTelemetry, Jaeger, and Seq.

Industrial IoT systems span ERP, MES, SCADA, WCS, edge gateways, and devices. When issues arise, APM systems help trace problems across the full stack.

OpenTelemetry

OpenTelemetry is a vendor-neutral protocol standard from Google and Microsoft, unifying OpenTracing and OpenCensus. It supports 11 languages including .NET, and can collect metrics, logs, and traces.

Jaeger & Seq

Jaeger provides distributed tracing storage and query. Seq serves as the log platform with SQL query and chart support.

Source Code

ExploringIoTDistributedTracingNet6