4 writes to Key
Aspire.Dashboard (4)
Model\TelemetryExportService.cs (3)
329
Key
= OtlpResource.SERVICE_NAME,
334
Key
= OtlpResource.SERVICE_INSTANCE_ID,
360
Key
= a.Key,
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (1)
59
Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)obj).
Key
= value!,
10 references to Key
Aspire.Dashboard (4)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
784
if (json.
Key
is not null)
786
kv.Key = json.
Key
;
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (2)
58
Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)obj).
Key
,
106
string __value_Key = ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)value).
Key
;
Aspire.Dashboard.Tests (6)
Model\TelemetryExportServiceTests.cs (6)
61
Assert.Contains(resourceLogs.Resource.Attributes, a => a.
Key
== OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService");
62
Assert.Contains(resourceLogs.Resource.Attributes, a => a.
Key
== OtlpResource.SERVICE_INSTANCE_ID && a.Value?.StringValue == "instance-1");
83
Assert.Contains(logRecord.Attributes, a => a.
Key
== "custom.attr" && a.Value?.StringValue == "custom-value");
269
Assert.Contains(resourceSpans.Resource.Attributes, a => a.
Key
== OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService");
292
Assert.Contains(span.Attributes, a => a.
Key
== "http.method" && a.Value?.StringValue == "GET");
381
Assert.Contains(resourceMetrics.Resource.Attributes, a => a.
Key
== OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService");