using System.Collections.Generic;
namespace EonaCat.LogStack.Telemetry;
public sealed class TelemetryContext
{
    public string TraceId { get; set; } = System.Guid.NewGuid().ToString("N");
    public string SpanId { get; set; } = System.Guid.NewGuid().ToString("N").Substring(0, 16);
    public Dictionary<string,string> Baggage { get; } = new();
    public TelemetryContext Set(string key,string value){ Baggage[key]=value; return this; }
}
