| | | 1 | | namespace Elsa.Diagnostics.OpenTelemetry.Models; |
| | | 2 | | |
| | | 3 | | public record OpenTelemetryResourceFilter |
| | | 4 | | { |
| | | 5 | | public string? Search { get; init; } |
| | | 6 | | public string? ServiceName { get; init; } |
| | | 7 | | public TelemetryResourceStatus? Status { get; init; } |
| | | 8 | | public int? Take { get; init; } |
| | | 9 | | } |
| | | 10 | | |
| | | 11 | | public record OpenTelemetryTraceFilter |
| | | 12 | | { |
| | | 13 | | public string? ResourceId { get; init; } |
| | | 14 | | public string? ServiceName { get; init; } |
| | | 15 | | public string? TraceId { get; init; } |
| | | 16 | | public string? WorkflowInstanceId { get; init; } |
| | | 17 | | public SpanStatus? Status { get; init; } |
| | | 18 | | public DateTimeOffset? From { get; init; } |
| | | 19 | | public DateTimeOffset? To { get; init; } |
| | | 20 | | public string? Search { get; init; } |
| | | 21 | | public int? Take { get; init; } |
| | | 22 | | } |
| | | 23 | | |
| | | 24 | | public record OpenTelemetryMetricFilter |
| | | 25 | | { |
| | | 26 | | public string? ResourceId { get; init; } |
| | | 27 | | public string? ServiceName { get; init; } |
| | | 28 | | public string? InstrumentName { get; init; } |
| | | 29 | | public DateTimeOffset? From { get; init; } |
| | | 30 | | public DateTimeOffset? To { get; init; } |
| | | 31 | | public int? Take { get; init; } |
| | | 32 | | } |
| | | 33 | | |
| | | 34 | | public record OpenTelemetryLogFilter |
| | | 35 | | { |
| | | 36 | | public string? ResourceId { get; init; } |
| | | 37 | | public string? ServiceName { get; init; } |
| | | 38 | | public string? TraceId { get; init; } |
| | | 39 | | public string? SpanId { get; init; } |
| | | 40 | | public string? Severity { get; init; } |
| | | 41 | | public DateTimeOffset? From { get; init; } |
| | | 42 | | public DateTimeOffset? To { get; init; } |
| | | 43 | | public string? Search { get; init; } |
| | | 44 | | public int? Take { get; init; } |
| | | 45 | | } |
| | | 46 | | |
| | | 47 | | public record OpenTelemetryResourceResult(IReadOnlyCollection<TelemetryResource> Items, long DroppedCount); |
| | | 48 | | |
| | | 49 | | public record OpenTelemetryTraceResult(IReadOnlyCollection<TelemetryTrace> Items, long DroppedCount); |
| | | 50 | | |
| | | 51 | | public record OpenTelemetryTraceDetail( |
| | | 52 | | TelemetryTrace Trace, |
| | | 53 | | IReadOnlyCollection<TelemetrySpan> Spans, |
| | | 54 | | IReadOnlyCollection<TelemetryResource> Resources, |
| | | 55 | | IReadOnlyCollection<OtlpLogRecord> Logs); |
| | | 56 | | |
| | | 57 | | public record OpenTelemetryMetricResult(IReadOnlyCollection<MetricInstrument> Instruments, IReadOnlyCollection<MetricPoi |
| | | 58 | | |
| | | 59 | | public record OpenTelemetryLogResult(IReadOnlyCollection<OtlpLogRecord> Items, long DroppedCount); |
| | | 60 | | |
| | 12 | 61 | | public record CollectorEndpointInfo(string Protocol, string? Endpoint, bool Enabled, string? DisabledReason); |
| | | 62 | | |
| | | 63 | | public record CollectorConfiguration( |
| | | 64 | | CollectorEndpointInfo Http, |
| | | 65 | | CollectorEndpointInfo Grpc, |
| | | 66 | | string ServiceNameEnvironmentVariable, |
| | | 67 | | string EndpointEnvironmentVariable, |
| | | 68 | | string ProtocolEnvironmentVariable, |
| | | 69 | | IReadOnlyDictionary<string, string> RequiredHeaders); |
| | | 70 | | |
| | | 71 | | public record OpenTelemetryBatch( |
| | | 72 | | IReadOnlyCollection<TelemetryResource> Resources, |
| | | 73 | | IReadOnlyCollection<TelemetryTrace> Traces, |
| | | 74 | | IReadOnlyCollection<TelemetrySpan> Spans, |
| | | 75 | | IReadOnlyCollection<MetricInstrument> Instruments, |
| | | 76 | | IReadOnlyCollection<MetricPoint> MetricPoints, |
| | | 77 | | IReadOnlyCollection<OtlpLogRecord> Logs); |
| | | 78 | | |
| | | 79 | | public record OpenTelemetryStreamItem |
| | | 80 | | { |
| | | 81 | | public TelemetryResource? Resource { get; init; } |
| | | 82 | | public TelemetryTrace? Trace { get; init; } |
| | | 83 | | public MetricPoint? MetricPoint { get; init; } |
| | | 84 | | public OtlpLogRecord? Log { get; init; } |
| | | 85 | | public OpenTelemetryDroppedItemSummary? DroppedItems { get; init; } |
| | | 86 | | } |