Trace constructor

Trace(
  1. CloudBaseCore core
)

Trace(?)

Implementation

factory Trace(CloudBaseCore core) {
  String env = core.config.env!;

  if (_cache.containsKey(env)) {
    return _cache[env]!;
  } else {
    final trace = Trace._internal(core);
    _cache[env] = trace;
    return trace;
  }
}