1 write to _otlpContext
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (1)
110
_otlpContext
= new OtlpContext
26 references to _otlpContext
Aspire.Dashboard.Tests (26)
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (26)
117
_logs = new(
_otlpContext
.Options.MaxLogCount);
118
_traces = new(
_otlpContext
.Options.MaxTraceCount);
293
if (_resources.Count >=
_otlpContext
.Options.MaxResourceCount)
295
throw new InvalidOperationException($"Resource limit of {
_otlpContext
.Options.MaxResourceCount} reached. Resource '{key}' will not be added.");
304
return new ResourceEntry(new OtlpResource(key.Name, key.InstanceId, uninstrumentedPeer,
_otlpContext
));
387
_otlpContext
.Logger.LogInformation(ex, "Error adding resource.");
409
if (!OtlpHelpers.TryGetOrAddScope(_logScopes, sl.Scope,
_otlpContext
, TelemetryType.Logs, out var scope))
419
var logEntry = CreateOtlpLogEntry(record, resourceView, scope,
_otlpContext
);
465
_otlpContext
.Logger.LogInformation(ex, "Error adding log entry.");
1910
_otlpContext
.Logger.LogInformation(ex, "Error adding resource.");
1930
if (!OtlpHelpers.TryGetOrAddScope(resourceEntry.Meters, scopeMetric.Scope,
_otlpContext
, TelemetryType.Metrics, out var scope))
1966
Context =
_otlpContext
1970
_otlpContext
.Logger.LogTrace("Added metric instrument '{InstrumentName}' for scope '{ScopeName}'.", instrument.Summary.Name, scope.Name);
1981
_otlpContext
.Logger.LogInformation(ex, "Error adding metric instrument {MetricName}.", metric.Name);
2005
instrument.FindScope(dataPoint.Attributes).AddPointValue(dataPoint,
_otlpContext
);
2011
_otlpContext
.Logger.LogInformation(ex, "Error adding metric.");
2021
instrument.FindScope(dataPoint.Attributes).AddPointValue(dataPoint,
_otlpContext
);
2027
_otlpContext
.Logger.LogInformation(ex, "Error adding metric.");
2036
instrument.FindScope(dataPoint.Attributes).AddHistogramValue(dataPoint,
_otlpContext
);
2042
_otlpContext
.Logger.LogInformation(ex, "Error adding metric.");
2048
_otlpContext
.Logger.LogInformation("Error adding summary metrics. Summary is not supported.");
2052
_otlpContext
.Logger.LogInformation("Error adding exponential histogram metrics. Exponential histogram is not supported.");
2099
_otlpContext
.Logger.LogInformation(ex, "Error adding resource.");
2137
if (!OtlpHelpers.TryGetOrAddScope(_traceScopes, scopeSpan.Scope,
_otlpContext
, TelemetryType.Traces, out var scope))
2162
var newSpan = CreateSpan(resourceView, span, trace, scope,
_otlpContext
);
2258
_otlpContext
.Logger.LogInformation(ex, "Error adding span.");