58 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\OtlpHelpers.cs (7)
30
internal static OtlpSpanKind ConvertSpanKind(
SpanKind
? kind)
36
SpanKind
.Unspecified => OtlpSpanKind.Internal,
37
SpanKind
.Internal => OtlpSpanKind.Internal,
38
SpanKind
.Client => OtlpSpanKind.Client,
39
SpanKind
.Server => OtlpSpanKind.Server,
40
SpanKind
.Producer => OtlpSpanKind.Producer,
41
SpanKind
.Consumer => OtlpSpanKind.Consumer,
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (1)
141
span.Kind = (Span.Types.
SpanKind
)json.Kind.Value;
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 (39)
Model\ResourceMenuBuilderTests.cs (2)
133
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),
134
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)
286
kind: Span.Types.
SpanKind
.Server,
Model\TelemetryImportServiceTests.cs (2)
447
Spans = { CreateSpan(traceId: "trace123456789012", spanId: "span1234", startTime: s_testTime, endTime: s_testTime.AddSeconds(1), kind: Span.Types.
SpanKind
.Server) }
553
Kind = (int)Span.Types.
SpanKind
.Server,
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (1)
158
kind: 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)]
34
public void ConvertSpanKind(OtlpSpanKind expected, Span.Types.
SpanKind
value)
405
kind: Span.Types.
SpanKind
.Client)
1629
CreateSpan(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),
1630
CreateSpan(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)
1780
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) }
2631
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),
2632
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)
2711
kind: Span.Types.
SpanKind
.Client,
2741
kind: Span.Types.
SpanKind
.Client)
2797
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)
2839
kind: Span.Types.
SpanKind
.Client)
2900
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),
2901
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)
3010
kind: Span.Types.
SpanKind
.Client)
3054
kind: Span.Types.
SpanKind
.Client)
3114
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),
3115
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)
3479
kind: Span.Types.
SpanKind
.Client)
3624
kind: Span.Types.
SpanKind
.Client),
3631
kind: Span.Types.
SpanKind
.Client),
3644
kind: Span.Types.
SpanKind
.Client),
3656
kind: Span.Types.
SpanKind
.Producer)
3709
kind: Span.Types.
SpanKind
.Client,
3717
kind: Span.Types.
SpanKind
.Server,
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,