1 write to _otlpContext
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
94
_otlpContext
= new OtlpContext
39 references to _otlpContext
Aspire.Dashboard (39)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (4)
80
if (resourceCount >=
_otlpContext
.Options.MaxResourceCount)
82
throw new InvalidOperationException($"Resource limit of {
_otlpContext
.Options.MaxResourceCount} reached. Resource '{resourceKey}' will not be added.");
192
instrumentationScope.Attributes.ToKeyValuePairs(
_otlpContext
));
618
var resource = new OtlpResource(key.Name, key.InstanceId, uninstrumentedPeer,
_otlpContext
);
Otlp\Storage\SqliteTelemetryRepository.cs (3)
118
_otlpContext
.Logger.LogTrace("{Count} incoming structured log resource(s) ignored because of an active pause.", resourceLogs.Count);
146
_otlpContext
.Logger.LogTrace("{Count} incoming metric resource(s) ignored because of an active pause.", resourceMetrics.Count);
164
_otlpContext
.Logger.LogTrace("{Count} incoming trace resource(s) ignored because of an active pause.", resourceSpans.Count);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (7)
50
_otlpContext
.Logger.LogInformation(exception, "Error adding resource.");
68
_otlpContext
.Logger.LogInformation(exception, "Error adding log scope.");
83
_otlpContext
));
88
_otlpContext
.Logger.LogInformation(exception, "Error adding log entry.");
193
""", new {
_otlpContext
.Options.MaxLogCount }, transaction);
272
IsFull = totalCount >=
_otlpContext
.Options.MaxLogCount
284
query.Parameters.Add("MaxLogCount",
_otlpContext
.Options.MaxLogCount);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (1)
363
_otlpContext
.Options.MaxMetricsCount,
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (11)
55
_otlpContext
.Logger.LogInformation(exception, "Error adding resource.");
69
_otlpContext
.Logger.LogInformation(exception, "Error adding metric scope.");
80
_otlpContext
.Logger.LogInformation(
142
_otlpContext
.Logger.LogInformation("Error adding {MetricType} metrics. {MetricType} is not supported.", metric.DataCase, metric.DataCase);
163
_otlpContext
.Logger.LogInformation(exception, "Error adding metric instrument {MetricName}.", metric.Name);
263
_otlpContext
.Logger.LogInformation(exception, "Error adding metric.");
333
_otlpContext
.Logger.LogInformation(exception, "Error adding metric.");
510
var attributes = pointAttributes.ToKeyValuePairs(
_otlpContext
);
764
if (!double.IsFinite(value) || !OtlpHelpers.TryValidateMetricExemplarTimestamp(exemplar,
_otlpContext
))
778
Attributes = exemplar.FilteredAttributes.ToKeyValuePairs(
_otlpContext
)
850
var removeCount = dimension.PointCount -
_otlpContext
.Options.MaxMetricsCount;
Otlp\Storage\SqliteTelemetryRepository.Runtime.cs (1)
151
}, ExecutionContext.Capture(),
_otlpContext
.Logger, _subscriptionMinExecuteInterval);
Otlp\Storage\SqliteTelemetryRepository.Traces.Reads.cs (4)
53
IsFull = connection.QuerySingle<int>("SELECT COUNT(*) FROM telemetry_traces;", transaction: transaction) >=
_otlpContext
.Options.MaxTraceCount
67
query.Parameters.Add("MaxTraceCount",
_otlpContext
.Options.MaxTraceCount);
180
new(resourceName, instanceId, uninstrumentedPeer,
_otlpContext
);
419
IsFull = connection.QuerySingle<int>("SELECT COUNT(*) FROM telemetry_traces;", transaction: transaction) >=
_otlpContext
.Options.MaxTraceCount
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (8)
68
_otlpContext
.Logger.LogInformation(exception, "Error adding resource.");
86
_otlpContext
.Logger.LogInformation(exception, "Error adding trace scope.");
111
_otlpContext
.Logger.LogInformation(exception, "Error adding span.");
936
Attributes = span.Attributes.ToKeyValuePairs(
_otlpContext
, filter: attribute => attribute.Key != OtlpHelpers.AspireDestinationNameAttribute),
943
foreach (var spanEvent in span.Events.OrderBy(spanEvent => spanEvent.TimeUnixNano).Take(
_otlpContext
.Options.MaxSpanEventCount))
950
Attributes = spanEvent.Attributes.ToKeyValuePairs(
_otlpContext
)
963
Attributes = link.Attributes.ToKeyValuePairs(
_otlpContext
)
990
""", new {
_otlpContext
.Options.MaxTraceCount }, transaction);