Get the current execution context for diagnostic purposes.
var context = new ContextSnapshotBuilder().AddDefault().Build();
// You can serialize the context
JsonSerializer.Serialize(snapshot, new JsonSerializerOptions
{
WriteIndented = true,
Converters =
{
new JsonStringEnumConverter(),
},
});