58 references to SpanKind
Aspire.Dashboard (17)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (9)
79new pbr::GeneratedClrTypeInfo(typeof(global::OpenTelemetry.Proto.Trace.V1.Span), global::OpenTelemetry.Proto.Trace.V1.Span.Parser, new[]{ "TraceId", "SpanId", "TraceState", "ParentSpanId", "Flags", "Name", "Kind", "StartTimeUnixNano", "EndTimeUnixNano", "Attributes", "DroppedAttributesCount", "Events", "DroppedEventsCount", "Links", "DroppedLinksCount", "Status" }, null, new[]{ typeof(global::OpenTelemetry.Proto.Trace.V1.Span.Types.SpanKind) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::OpenTelemetry.Proto.Trace.V1.Span.Types.Event), global::OpenTelemetry.Proto.Trace.V1.Span.Types.Event.Parser, new[]{ "TimeUnixNano", "Name", "Attributes", "DroppedAttributesCount" }, null, null, null, null), 1109private global::OpenTelemetry.Proto.Trace.V1.Span.Types.SpanKind kind_ = global::OpenTelemetry.Proto.Trace.V1.Span.Types.SpanKind.Unspecified; 1117public global::OpenTelemetry.Proto.Trace.V1.Span.Types.SpanKind Kind { 1326if (Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.SpanKind.Unspecified) hash ^= Kind.GetHashCode(); 1439if (Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.SpanKind.Unspecified) { 1502if (Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.SpanKind.Unspecified) { 1556if (other.Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.SpanKind.Unspecified) { 1709Kind = (global::OpenTelemetry.Proto.Trace.V1.Span.Types.SpanKind) input.ReadEnum();
Otlp\Model\OtlpHelpers.cs (7)
30internal static OtlpSpanKind ConvertSpanKind(SpanKind? kind) 36SpanKind.Unspecified => OtlpSpanKind.Internal, 37SpanKind.Internal => OtlpSpanKind.Internal, 38SpanKind.Client => OtlpSpanKind.Client, 39SpanKind.Server => OtlpSpanKind.Server, 40SpanKind.Producer => OtlpSpanKind.Producer, 41SpanKind.Consumer => OtlpSpanKind.Consumer,
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (1)
141span.Kind = (Span.Types.SpanKind)json.Kind.Value;
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null, Status? status = null) 166Kind = kind ?? Span.Types.SpanKind.Internal,
Aspire.Dashboard.Tests (39)
Model\ResourceMenuBuilderTests.cs (2)
133TelemetryTestHelpers.CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-1")], kind: Span.Types.SpanKind.Client), 134TelemetryTestHelpers.CreateSpan(traceId: "1", spanId: "1-2", startTime: s_testTime.AddMinutes(5), endTime: s_testTime.AddMinutes(10), parentSpanId: "1-1", attributes: [KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-2")], kind: Span.Types.SpanKind.Client)
Model\TelemetryExportServiceTests.cs (1)
286kind: Span.Types.SpanKind.Server,
Model\TelemetryImportServiceTests.cs (2)
447Spans = { CreateSpan(traceId: "trace123456789012", spanId: "span1234", startTime: s_testTime, endTime: s_testTime.AddSeconds(1), kind: Span.Types.SpanKind.Server) } 553Kind = (int)Span.Types.SpanKind.Server,
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (1)
158kind: Span.Types.SpanKind.Client)
TelemetryRepositoryTests\TraceTests.cs (31)
27[InlineData(OtlpSpanKind.Server, Span.Types.SpanKind.Server)] 28[InlineData(OtlpSpanKind.Client, Span.Types.SpanKind.Client)] 29[InlineData(OtlpSpanKind.Consumer, Span.Types.SpanKind.Consumer)] 30[InlineData(OtlpSpanKind.Producer, Span.Types.SpanKind.Producer)] 31[InlineData(OtlpSpanKind.Internal, Span.Types.SpanKind.Internal)] 32[InlineData(OtlpSpanKind.Internal, Span.Types.SpanKind.Unspecified)] 33[InlineData(OtlpSpanKind.Unspecified, (Span.Types.SpanKind)1000)] 34public void ConvertSpanKind(OtlpSpanKind expected, Span.Types.SpanKind value) 405kind: Span.Types.SpanKind.Client) 1629CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(3), attributes: [KeyValuePair.Create("custom", "one")], kind: Span.Types.SpanKind.Client), 1630CreateSpan(traceId: "1", spanId: "1-2", startTime: s_testTime.AddMinutes(2), endTime: s_testTime.AddMinutes(5), parentSpanId: "1-1", attributes: [KeyValuePair.Create("custom", "two")], kind: Span.Types.SpanKind.Server) 1780Spans = { CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create("key1", "value1"), KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-1")], kind: Span.Types.SpanKind.Client) } 2631CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-1")], kind: Span.Types.SpanKind.Client), 2632CreateSpan(traceId: "1", spanId: "1-2", startTime: s_testTime.AddMinutes(5), endTime: s_testTime.AddMinutes(10), parentSpanId: "1-1", attributes: [KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-2")], kind: Span.Types.SpanKind.Client) 2711kind: Span.Types.SpanKind.Client, 2741kind: Span.Types.SpanKind.Client) 2797CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-1")], kind: Span.Types.SpanKind.Client) 2839kind: Span.Types.SpanKind.Client) 2900CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-1")], kind: Span.Types.SpanKind.Client), 2901CreateSpan(traceId: "1", spanId: "1-2", startTime: s_testTime.AddMinutes(5), endTime: s_testTime.AddMinutes(10), parentSpanId: "1-1", attributes: [KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-2")], kind: Span.Types.SpanKind.Client) 3010kind: Span.Types.SpanKind.Client) 3054kind: Span.Types.SpanKind.Client) 3114CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), attributes: [KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-1")], kind: Span.Types.SpanKind.Client), 3115CreateSpan(traceId: "1", spanId: "1-2", startTime: s_testTime.AddMinutes(5), endTime: s_testTime.AddMinutes(10), parentSpanId: "1-1", attributes: [KeyValuePair.Create(OtlpSpan.PeerServiceAttributeKey, "value-2")], kind: Span.Types.SpanKind.Client) 3479kind: Span.Types.SpanKind.Client) 3624kind: Span.Types.SpanKind.Client), 3631kind: Span.Types.SpanKind.Client), 3644kind: Span.Types.SpanKind.Client), 3656kind: Span.Types.SpanKind.Producer) 3709kind: Span.Types.SpanKind.Client, 3717kind: Span.Types.SpanKind.Server,
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null, Status? status = null) 166Kind = kind ?? Span.Types.SpanKind.Internal,