1 write to _otlpContext
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
75
_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)
82
_logs = new(
_otlpContext
.Options.MaxLogCount);
83
_traces = new(
_otlpContext
.Options.MaxTraceCount);
246
return new OtlpResource(key.Name, key.InstanceId, uninstrumentedPeer,
_otlpContext
);
327
_otlpContext
.Logger.LogInformation(ex, "Error adding resource.");
348
if (!OtlpHelpers.TryGetOrAddScope(_logScopes, sl.Scope,
_otlpContext
, TelemetryType.Logs, out var scope))
358
var logEntry = new OtlpLogEntry(record, resourceView, scope,
_otlpContext
);
404
_otlpContext
.Logger.LogInformation(ex, "Error adding log entry.");
1070
_otlpContext
.Logger.LogInformation(ex, "Error adding resource.");
1099
_otlpContext
.Logger.LogInformation(ex, "Error adding resource.");
1147
if (!OtlpHelpers.TryGetOrAddScope(_traceScopes, scopeSpan.Scope,
_otlpContext
, TelemetryType.Traces, out var scope))
1172
var newSpan = CreateSpan(resourceView, span, trace, scope,
_otlpContext
);
1268
_otlpContext
.Logger.LogInformation(ex, "Error adding span.");