14 instantiations of OtlpKeyValueJson
Aspire.Cli.Tests (14)
Mcp\ListStructuredLogsToolTests.cs (6)
62
new
() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }
66
attributes.Add(new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } });
105
new
OtlpKeyValueJson
{ Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { StringValue = "42" } },
106
new
OtlpKeyValueJson
{ Key = "custom.attr", Value = new OtlpAnyValueJson { StringValue = "custom-value" } }
120
new
OtlpKeyValueJson
{ Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 43 } }
134
new
OtlpKeyValueJson
{ Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 44 } }
Mcp\ListTracesToolTests.cs (8)
31
new
() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }
35
attributes.Add(new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } });
74
new
OtlpKeyValueJson
{ Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } },
75
new
OtlpKeyValueJson
{ Key = "http.url", Value = new OtlpAnyValueJson { StringValue = "/api/products" } }
91
new
OtlpKeyValueJson
{ Key = "aspire.destination", Value = new OtlpAnyValueJson { StringValue = "catalog-service" } }
106
new
OtlpKeyValueJson
{ Key = "error", Value = new OtlpAnyValueJson { StringValue = "Processing failed" } }
339
new
() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }
343
attributes.Add(new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } });
20 references to OtlpKeyValueJson
aspire (17)
Otlp\OtlpCliJsonSerializerContext.cs (1)
105
[JsonSerializable(typeof(
OtlpKeyValueJson
))]
src\Shared\ConsoleLogs\SharedAIHelpers.cs (8)
221
foreach (
var
attr in span.Attributes.Where(a => a.Key != OtlpHelpers.AspireDestinationNameAttribute))
292
private static string MapOtelAttributeValue(
OtlpKeyValueJson
attribute)
473
public static string GetAttributeValue(
OtlpKeyValueJson
attribute)
490
public static string? GetAttributeStringValue(
OtlpKeyValueJson
[]? attributes, string key)
497
foreach (
var
attr in attributes)
529
public static IEnumerable<
OtlpKeyValueJson
> GetFilteredAttributes(
OtlpKeyValueJson
[]? attributes)
585
foreach (
var
attr in GetFilteredAttributes(logEntry.LogRecord.Attributes))
src\Shared\Otlp\Serialization\OtlpCommonJson.cs (2)
79
public
OtlpKeyValueJson
[]? Values { get; set; }
121
public
OtlpKeyValueJson
[]? Attributes { get; set; }
src\Shared\Otlp\Serialization\OtlpLogsJson.cs (1)
97
public
OtlpKeyValueJson
[]? Attributes { get; set; }
src\Shared\Otlp\Serialization\OtlpResourceJson.cs (2)
17
public
OtlpKeyValueJson
[]? Attributes { get; set; }
42
foreach (
var
attr in Attributes)
src\Shared\Otlp\Serialization\OtlpTraceJson.cs (3)
122
public
OtlpKeyValueJson
[]? Attributes { get; set; }
186
public
OtlpKeyValueJson
[]? Attributes { get; set; }
223
public
OtlpKeyValueJson
[]? Attributes { get; set; }
Aspire.Cli.Tests (3)
Mcp\ListStructuredLogsToolTests.cs (1)
60
var attributes = new List<
OtlpKeyValueJson
>
Mcp\ListTracesToolTests.cs (2)
29
var attributes = new List<
OtlpKeyValueJson
>
337
var attributes = new List<
OtlpKeyValueJson
>