27 instantiations of OtlpKeyValueJson
Aspire.Cli.Tests (27)
Commands\TelemetryCommandTests.cs (2)
375
new
() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
379
attrs.Add(
new
() { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } });
Commands\TelemetryLogsCommandTests.cs (2)
597
new
OtlpKeyValueJson
{ Key = "aspire.log_id", Value = new OtlpAnyValueJson { StringValue = "42" } },
598
new
OtlpKeyValueJson
{ Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } }
Commands\TelemetrySpansCommandTests.cs (2)
331
new
OtlpKeyValueJson
{ Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } },
332
new
OtlpKeyValueJson
{ Key = "aspire.destination", Value = new OtlpAnyValueJson { StringValue = "backend" } }
Commands\TelemetryTestHelper.cs (2)
43
new
() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
47
attrs.Add(
new
() { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } });
Commands\TelemetryTracesCommandTests.cs (1)
536
new
OtlpKeyValueJson
{ Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } }
Mcp\ExcludeFromMcpTests.cs (3)
466
Attributes = [new
OtlpKeyValueJson
{ Key = "service.name", Value = new OtlpAnyValueJson { StringValue = name } }]
481
Attributes = [new
OtlpKeyValueJson
{ Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 1 } }]
511
Attributes = [new
OtlpKeyValueJson
{ Key = "service.name", Value = new OtlpAnyValueJson { StringValue = name } }]
Mcp\ListStructuredLogsToolTests.cs (6)
61
new
() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }
65
attributes.Add(new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } });
104
new
OtlpKeyValueJson
{ Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { StringValue = "42" } },
105
new
OtlpKeyValueJson
{ Key = "custom.attr", Value = new OtlpAnyValueJson { StringValue = "custom-value" } }
119
new
OtlpKeyValueJson
{ Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 43 } }
133
new
OtlpKeyValueJson
{ Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 44 } }
Mcp\ListTracesToolTests.cs (8)
30
new
() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }
34
attributes.Add(new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } });
73
new
OtlpKeyValueJson
{ Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } },
74
new
OtlpKeyValueJson
{ Key = "http.url", Value = new OtlpAnyValueJson { StringValue = "/api/products" } }
90
new
OtlpKeyValueJson
{ Key = "aspire.destination", Value = new OtlpAnyValueJson { StringValue = "catalog-service" } }
105
new
OtlpKeyValueJson
{ Key = "error", Value = new OtlpAnyValueJson { StringValue = "Processing failed" } }
332
new
() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }
336
attributes.Add(new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } });
ProfileCaptureServiceTests.cs (1)
617
var sessionAttribute = new
OtlpKeyValueJson
31 references to OtlpKeyValueJson
aspire (25)
Profiling\ProfileCaptureService.cs (1)
480
private static bool ContainsProfilingSessionId(IEnumerable<
OtlpKeyValueJson
>? attributes, string sessionId)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (8)
223
foreach (
var
attr in span.Attributes.Where(a => a.Key != OtlpHelpers.AspireDestinationNameAttribute))
418
private static string MapOtelAttributeValue(
OtlpKeyValueJson
attribute)
609
public static string GetAttributeValue(
OtlpKeyValueJson
attribute)
626
public static string? GetAttributeStringValue(
OtlpKeyValueJson
[]? attributes, string key)
633
foreach (
var
attr in attributes)
665
public static IEnumerable<
OtlpKeyValueJson
> GetFilteredAttributes(
OtlpKeyValueJson
[]? attributes)
723
foreach (
var
attr in GetFilteredAttributes(logEntry.LogRecord.Attributes))
src\Shared\Otlp\Serialization\OtlpCommonJson.cs (2)
79
public
OtlpKeyValueJson
[]? Values { get; set; }
146
public
OtlpKeyValueJson
[]? Attributes { get; set; }
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (1)
30
[JsonSerializable(typeof(
OtlpKeyValueJson
))]
src\Shared\Otlp\Serialization\OtlpLogsJson.cs (1)
97
public
OtlpKeyValueJson
[]? Attributes { get; set; }
src\Shared\Otlp\Serialization\OtlpMetricsJson.cs (6)
113
public
OtlpKeyValueJson
[]? Metadata { get; set; }
210
public
OtlpKeyValueJson
[]? Attributes { get; set; }
262
public
OtlpKeyValueJson
[]? Attributes { get; set; }
339
public
OtlpKeyValueJson
[]? Attributes { get; set; }
456
public
OtlpKeyValueJson
[]? Attributes { get; set; }
529
public
OtlpKeyValueJson
[]? FilteredAttributes { get; set; }
src\Shared\Otlp\Serialization\OtlpResourceJson.cs (3)
17
public
OtlpKeyValueJson
[]? Attributes { get; set; }
42
foreach (
var
attr in Attributes)
63
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 (6)
Commands\TelemetryCommandTests.cs (1)
373
var attrs = new List<
OtlpKeyValueJson
>
Commands\TelemetryTestHelper.cs (1)
41
var attrs = new List<
OtlpKeyValueJson
>
Mcp\ListStructuredLogsToolTests.cs (1)
59
var attributes = new List<
OtlpKeyValueJson
>
Mcp\ListTracesToolTests.cs (2)
28
var attributes = new List<
OtlpKeyValueJson
>
330
var attributes = new List<
OtlpKeyValueJson
>
ProfileCaptureServiceTests.cs (1)
617
var
sessionAttribute = new OtlpKeyValueJson