MerrionComputing / EventsSourcing-on-Azure-Functions

A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions
MIT License
103 stars 20 forks source link

Add W3C Trace Context headers to notifications #37

Closed MerrionComputing closed 3 years ago

MerrionComputing commented 4 years ago

The notifications should pass on context details as W3C Trace Context headers as many tracing solutions can use these to recreate the causality graph.

MerrionComputing commented 4 years ago

It looks like there may be something for this in Application Insights SDK : https://docs.microsoft.com/en-us/azure/azure-monitor/app/correlation

MerrionComputing commented 4 years ago

Definitely should be possible/desireable to add HttpCorrelationProtocol stuff

https://github.com/dotnet/runtime/blob/4f9ae42d861fcb4be2fcd5d3d55d5f227d30e723/src/libraries/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md

MerrionComputing commented 3 years ago

Added - this requires the write context (IWriteContext) to be set by the calling application but if that is done it will pass through to ant W3C trace compliant analysis tools.