10 writes to Key
Aspire.Dashboard (4)
Model\TelemetryExportService.cs (3)
366
Key
= OtlpResource.SERVICE_NAME,
371
Key
= OtlpResource.SERVICE_INSTANCE_ID,
397
Key
= a.Key,
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (1)
59
Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)obj).
Key
= value!,
Aspire.Dashboard.Tests (6)
Model\TelemetryImportServiceTests.cs (6)
415
new OtlpKeyValueJson {
Key
= "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
416
new OtlpKeyValueJson {
Key
= "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
460
new OtlpKeyValueJson {
Key
= "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
461
new OtlpKeyValueJson {
Key
= "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
505
new OtlpKeyValueJson {
Key
= "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
506
new OtlpKeyValueJson {
Key
= "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
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)
65
Assert.Contains(resourceLogs.Resource.Attributes, a => a.
Key
== OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService");
66
Assert.Contains(resourceLogs.Resource.Attributes, a => a.
Key
== OtlpResource.SERVICE_INSTANCE_ID && a.Value?.StringValue == "instance-1");
87
Assert.Contains(logRecord.Attributes, a => a.
Key
== "custom.attr" && a.Value?.StringValue == "custom-value");
273
Assert.Contains(resourceSpans.Resource.Attributes, a => a.
Key
== OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService");
296
Assert.Contains(span.Attributes, a => a.
Key
== "http.method" && a.Value?.StringValue == "GET");
385
Assert.Contains(resourceMetrics.Resource.Attributes, a => a.
Key
== OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService");