fromTraceId static method

Context fromTraceId(
  1. String traceId
)

Creates new Context from trace id.

  • traceId a a context to trace execution through call chain. Returns a new Context object.

Implementation

static Context fromTraceId(String traceId) {
  final map = Parameters.fromTuples(["trace_id", traceId]);
  return Context(map);
}