39 references to SpanKind
Aspire.Dashboard (17)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\trace\v1\Trace.cs (9)
79
new 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),
1109
private global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
kind_ = global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified;
1117
public global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
Kind {
1326
if (Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified) hash ^= Kind.GetHashCode();
1439
if (Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified) {
1502
if (Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified) {
1556
if (other.Kind != global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
.Unspecified) {
1709
Kind = (global::OpenTelemetry.Proto.Trace.V1.Span.Types.
SpanKind
) input.ReadEnum();
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (1)
140
span.Kind = (Span.Types.
SpanKind
)json.Kind.Value;
Otlp\Storage\TelemetryRepository.cs (7)
950
internal static OtlpSpanKind ConvertSpanKind(
SpanKind
? kind)
956
SpanKind
.Unspecified => OtlpSpanKind.Internal,
957
SpanKind
.Internal => OtlpSpanKind.Internal,
958
SpanKind
.Client => OtlpSpanKind.Client,
959
SpanKind
.Server => OtlpSpanKind.Server,
960
SpanKind
.Producer => OtlpSpanKind.Producer,
961
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, Status? status = null)
166
Kind = kind ?? Span.Types.
SpanKind
.Internal,
Aspire.Dashboard.Tests (20)
Model\ResourceMenuItemsTests.cs (2)
79
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),
80
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)
Model\TelemetryExportServiceTests.cs (1)
239
kind: Span.Types.
SpanKind
.Server,
TelemetryRepositoryTests\TraceTests.cs (15)
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)
2145
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),
2146
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, Status? status = null)
166
Kind = kind ?? Span.Types.
SpanKind
.Internal,