11 instantiations of OtlpKeyValueJson
Aspire.Dashboard (5)
Model\TelemetryExportService.cs (5)
611attributes.Add(new OtlpKeyValueJson 628new OtlpKeyValueJson 633new OtlpKeyValueJson 666result[i] = new OtlpKeyValueJson 677result[attributes.Length + i] = new OtlpKeyValueJson
Aspire.Dashboard.Tests (6)
Model\TelemetryImportServiceTests.cs (6)
492new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 493new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } } 537new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 538new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } } 582new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 583new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
34 references to OtlpKeyValueJson
Aspire.Dashboard (32)
Model\TelemetryExportService.cs (2)
652private static OtlpKeyValueJson[]? ConvertAttributes(KeyValuePair<string, string>[] attributes, Func<KeyValuePair<string, string>[]>? getAdditionalAttributes = null) 662var result = new OtlpKeyValueJson[attributes.Length + additionalCount];
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (14)
153foreach (var attr in json.Attributes) 195foreach (var attr in json.Attributes) 221foreach (var attr in json.Attributes) 315foreach (var attr in json.Attributes) 416foreach (var kv in json.Metadata) 507foreach (var attr in json.Attributes) 544foreach (var attr in json.Attributes) 603foreach (var attr in json.Attributes) 676foreach (var attr in json.Attributes) 718foreach (var attr in json.FilteredAttributes) 751foreach (var attr in json.Attributes) 773foreach (var attr in json.Attributes) 782private static KeyValue ToProtobuf(OtlpKeyValueJson json) 848foreach (var kv in json.Values)
src\Shared\Otlp\Serialization\OtlpCommonJson.cs (2)
79public OtlpKeyValueJson[]? Values { get; set; } 146public OtlpKeyValueJson[]? Attributes { get; set; }
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (1)
30[JsonSerializable(typeof(OtlpKeyValueJson))]
src\Shared\Otlp\Serialization\OtlpLogsJson.cs (1)
97public OtlpKeyValueJson[]? Attributes { get; set; }
src\Shared\Otlp\Serialization\OtlpMetricsJson.cs (6)
113public OtlpKeyValueJson[]? Metadata { get; set; } 210public OtlpKeyValueJson[]? Attributes { get; set; } 262public OtlpKeyValueJson[]? Attributes { get; set; } 339public OtlpKeyValueJson[]? Attributes { get; set; } 456public OtlpKeyValueJson[]? Attributes { get; set; } 529public OtlpKeyValueJson[]? FilteredAttributes { get; set; }
src\Shared\Otlp\Serialization\OtlpResourceJson.cs (3)
17public OtlpKeyValueJson[]? Attributes { get; set; } 42foreach (var attr in Attributes) 63foreach (var attr in Attributes)
src\Shared\Otlp\Serialization\OtlpTraceJson.cs (3)
122public OtlpKeyValueJson[]? Attributes { get; set; } 186public OtlpKeyValueJson[]? Attributes { get; set; } 223public OtlpKeyValueJson[]? Attributes { get; set; }
Aspire.Dashboard.Tests (2)
Model\TelemetryExportServiceTests.cs (2)
138var logIdAttribute = Assert.Single(logRecord.Attributes, a => a.Key == OtlpHelpers.AspireLogIdAttribute); 1027var japaneseAttr = Assert.Single(logRecord.Attributes, a => a.Key == "japanese.attr");