35 references to SpanKind
Aspire.Dashboard (16)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (9)
75
new pbr::GeneratedClrTypeInfo(typeof(global::OpenTelemetry.Proto.Trace.V1.Span), global::OpenTelemetry.Proto.Trace.V1.Span.Parser, new[]{ "TraceId", "SpanId", "TraceState", "ParentSpanId", "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),
1022
private global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
kind_ = global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified;
1030
public global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
Kind {
1238
if (Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified) hash ^= Kind.GetHashCode();
1347
if (Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified) {
1403
if (Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified) {
1454
if (other.Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified) {
1603
Kind = (global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
) input.ReadEnum();
Otlp\Storage\TelemetryRepository.cs (7)
893
internal static OtlpSpanKind ConvertSpanKind(
SpanKind
? kind)
899
SpanKind
.Unspecified => OtlpSpanKind.Internal,
900
SpanKind
.Internal => OtlpSpanKind.Internal,
901
SpanKind
.Client => OtlpSpanKind.Client,
902
SpanKind
.Server => OtlpSpanKind.Server,
903
SpanKind
.Producer => OtlpSpanKind.Producer,
904
SpanKind
.Consumer => OtlpSpanKind.Consumer,
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156
public 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)
166
Kind = kind ?? Span.Types.
SpanKind
.Internal
Aspire.Dashboard.Tests (17)
Model\ResourceMenuItemsTests.cs (2)
72
TelemetryTestHelpers.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),
73
TelemetryTestHelpers.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)
TelemetryRepositoryTests\TraceTests.cs (13)
26
[InlineData(OtlpSpanKind.Server, Span.Types.
SpanKind
.Server)]
27
[InlineData(OtlpSpanKind.Client, Span.Types.
SpanKind
.Client)]
28
[InlineData(OtlpSpanKind.Consumer, Span.Types.
SpanKind
.Consumer)]
29
[InlineData(OtlpSpanKind.Producer, Span.Types.
SpanKind
.Producer)]
30
[InlineData(OtlpSpanKind.Internal, Span.Types.
SpanKind
.Internal)]
31
[InlineData(OtlpSpanKind.Internal, Span.Types.
SpanKind
.Unspecified)]
32
[InlineData(OtlpSpanKind.Unspecified, (Span.Types.
SpanKind
)1000)]
33
public void ConvertSpanKind(OtlpSpanKind expected, Span.Types.
SpanKind
value)
1257
Spans = { 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) }
1952
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),
1953
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)
2039
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),
2040
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)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156
public 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)
166
Kind = kind ?? Span.Types.
SpanKind
.Internal