code: func For(ctx context.Context) Logger {
  	if span := trace.FromContext(ctx); span != nil {
  		return &spanLogger{
  			span: span,
  		}
  	}
  	return new(nopLogger)
  }
docs: // For will return a logger for a given context