using System;
using System.Collections.Generic;
namespace EonaCat.LogStack.Telemetry;
public sealed class TelemetryEvent
{
    public string Name { get; set; } = "";
    public string Level { get; set; } = "Information";
    public long TimestampUnixMs { get; set; } = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
    public double DurationMs { get; set; }
    public long Value { get; set; }
    public string? TraceId { get; set; }
    public string? SpanId { get; set; }
    public string? ParentSpanId { get; set; }
    public string ServiceName { get; set; } = "";
    public string? ExceptionType { get; set; }
    public string? ExceptionMessage { get; set; }
    public Dictionary<string,string>? Tags { get; set; }
}
