Table of Contents

Class CorrelationIdLogEnricher

Namespace
Cratis.Applications.Execution
Assembly
Cratis.Applications.dll

Represents an implementation of Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher that enriches logs with the current correlation ID.

public class CorrelationIdLogEnricher : ILogEnricher
Inheritance
CorrelationIdLogEnricher
Implements
ILogEnricher
Inherited Members

Constructors

CorrelationIdLogEnricher(ICorrelationIdAccessor)

Represents an implementation of Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher that enriches logs with the current correlation ID.

public CorrelationIdLogEnricher(ICorrelationIdAccessor correlationIdAccessor)

Parameters

correlationIdAccessor ICorrelationIdAccessor

The accessor for the current correlation ID.

Methods

Enrich(IEnrichmentTagCollector)

Collects tags for a log record.

public void Enrich(IEnrichmentTagCollector collector)

Parameters

collector IEnrichmentTagCollector

Where the enricher puts the tags it produces.