1 write to _otlpContext
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
70
_otlpContext
= new OtlpContext
13 references to _otlpContext
Aspire.Dashboard (13)
Otlp\Storage\Subscription.cs (1)
32
_callbackThrottler = new CallbackThrottler(name, telemetryRepository.
_otlpContext
.Logger, telemetryRepository._subscriptionMinExecuteInterval, callback, executionContext);
Otlp\Storage\TelemetryRepository.cs (12)
77
_logs = new(
_otlpContext
.Options.MaxLogCount);
78
_traces = new(
_otlpContext
.Options.MaxTraceCount);
241
return new OtlpResource(key.Name, key.InstanceId, uninstrumentedPeer,
_otlpContext
);
322
_otlpContext
.Logger.LogInformation(ex, "Error adding resource.");
341
if (!OtlpHelpers.TryGetOrAddScope(_logScopes, sl.Scope,
_otlpContext
, TelemetryType.Logs, out var scope))
351
var logEntry = new OtlpLogEntry(record, resourceView, scope,
_otlpContext
);
392
_otlpContext
.Logger.LogInformation(ex, "Error adding log entry.");
1052
_otlpContext
.Logger.LogInformation(ex, "Error adding resource.");
1081
_otlpContext
.Logger.LogInformation(ex, "Error adding resource.");
1127
if (!OtlpHelpers.TryGetOrAddScope(_traceScopes, scopeSpan.Scope,
_otlpContext
, TelemetryType.Traces, out var scope))
1152
var newSpan = CreateSpan(resourceView, span, trace, scope,
_otlpContext
);
1243
_otlpContext
.Logger.LogInformation(ex, "Error adding span.");