How to include logrus logs to include trace id's from workflow context

We can create logrus with context like this
log := logrus.WithContext(ctx)

Added logrus hooks to fire and attach trace_id to the log.

func (hook *ContextHook) Fire(entry *log.Entry) error {
	if entry.Context != nil {
		entry.Data[trace_id] = entry.Context.Value(trace_id)
	return nil

and now log.Info(“testing…”) logs with trace_id like this.

How achieve the same using temporal workflow context ?

I’ve added context propagator to pass values from context.Context to workflow.Context during wokflow execution.