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); 241return new OtlpResource(key.Name, key.InstanceId, uninstrumentedPeer, _otlpContext); 322_otlpContext.Logger.LogInformation(ex, "Error adding resource."); 341if (!OtlpHelpers.TryGetOrAddScope(_logScopes, sl.Scope, _otlpContext, TelemetryType.Logs, out var scope)) 351var 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."); 1127if (!OtlpHelpers.TryGetOrAddScope(_traceScopes, scopeSpan.Scope, _otlpContext, TelemetryType.Traces, out var scope)) 1152var newSpan = CreateSpan(resourceView, span, trace, scope, _otlpContext); 1243_otlpContext.Logger.LogInformation(ex, "Error adding span.");